1 ## Process this file with automake to produce Makefile.in.
3 SUBDIRS = lib po src tests man
5 ACLOCAL_AMFLAGS = -I m4
7 EXTRA_DIST = cfg.mk maint.mk .prev-version .version dist-check.mk
9 # Arrange so that .tarball-version appears only in the distribution
10 # tarball, and never in a checked-out repository.
11 # The perl substitution is to change some key uses of "rm" to "/bin/rm".
12 # See the rm_subst comment for details.
13 dist-hook: gen-ChangeLog
14 echo $(VERSION) > $(distdir)/.tarball-version
15 perl -pi -e '$(rm_subst)' $(distdir)/src/Makefile.in
17 gen_start_date = 2008-01-03
20 if test -d .git; then \
21 $(top_srcdir)/build-aux/gitlog-to-changelog \
22 --since=$(gen_start_date) > $(distdir)/cl-t; \
23 rm -f $(distdir)/ChangeLog; \
24 mv $(distdir)/cl-t $(distdir)/ChangeLog; \
27 BUILT_SOURCES = .version
29 echo $(VERSION) > $@-t && mv $@-t $@