1 EXTRA_DIST= build/config.rpath KnownBugs TODO ChangeLog INSTALL NEWS debian \
2 ABOUT-NLS THANKS autogen.sh
3 ACLOCAL_AMFLAGS = -I m4
5 # For some reason some newer autoconf/automake appends --with-included-gettext
6 # to the 'configure' options when doing 'make distcheck'. Prevent that by
7 # passing the inverse option.
8 AM_DISTCHECK_CONFIGURE_FLAGS = --without-included-gettext
10 SUBDIRS=po doc src tests
13 git log --no-color > ChangeLog || exit 1
16 if test -d ${top_builddir}/.git/; then \
17 $(MAKE) $(AM_MAKEFLAGS) git_changelog; \
18 elif ! test -f ${top_builddir}/ChangeLog; then \
19 touch ${top_builddir}/ChangeLog; \
23 rm -f $(top_builddir)/src/version.h
24 BUILDING_PKG=1 dpkg-buildpackage -B -uc -rfakeroot && dh_clean
25 rm -f $(top_builddir)/src/version.h
27 version: git_changelog
28 rm -f $(top_builddir)/src/version.h
29 BUILDING_PKG=1 $(MAKE) $(AM_MAKEFLAGS) distcheck
30 rm -f $(top_builddir)/src/version.h
33 chmod u+w $(distdir)/doc
34 $(MAKE) $(AM_MAKEFLAGS) -C src
35 $(MAKE) $(AM_MAKEFLAGS) -C tests tests
36 $(MAKE) $(AM_MAKEFLAGS) -C doc