maint: use automake's $(AM_V_GEN) and $(AM_V_AT) to...
[cppi/ericb.git] / Makefile.am
blob6bfa2e880a0bea07f7f57f435c879bc151279c25
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
18 .PHONY: gen-ChangeLog
19 gen-ChangeLog:
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;                      \
25         fi
27 BUILT_SOURCES = .version
28 .version:
29         echo $(VERSION) > $@-t && mv $@-t $@
31 distcheck-hook:
32         $(MAKE) my-distcheck