1 ## Process this file with automake to produce Makefile.in.
3 AUTOMAKE_OPTIONS = subdir-objects
6 ACLOCAL_AMFLAGS = -I m4
8 EXTRA_DIST = cfg.mk maint.mk .prev-version .version dist-check.mk
10 # Arrange so that .tarball-version appears only in the distribution
11 # tarball, and never in a checked-out repository.
12 dist-hook: gen-ChangeLog do-not-require-help2man
13 echo $(VERSION) > $(distdir)/.tarball-version
15 # By default (i.e., with initial timestamps), do not run help2man when
16 # building from a distribution tarball. Normally, cppi.1 must depend
17 # on src/cppi, but when building from a distribution tarball, we don't
18 # want that, to avoid depending on help2man then. Here is the offending
20 # man/cppi.1: $(common_dep) $(srcdir)/man/cppi.x src/cppi
21 # The trick is simply to s,src/cppi,src/cppi.c/ in the $(distdir)
22 # we're about to tar and compress.
23 .PHONY: do-not-require-help2man
24 do-not-require-help2man:
25 perl -pi -e 's,^(man/cppi\.1:.*src/cppi)$$,$$1.c,' \
26 $(distdir)/Makefile.in
28 gen_start_date = 2008-01-03
31 if test -d .git; then \
32 $(top_srcdir)/build-aux/gitlog-to-changelog \
33 --since=$(gen_start_date) > $(distdir)/cl-t; \
34 rm -f $(distdir)/ChangeLog; \
35 mv $(distdir)/cl-t $(distdir)/ChangeLog; \
38 BUILT_SOURCES = .version
40 echo $(VERSION) > $@-t && mv $@-t $@
45 ###############################################
46 # Initialization before completion by local.mk's.
47 AM_CFLAGS = $(WARNING_CFLAGS) $(WERROR_CFLAGS)
51 MAINTAINERCLEANFILES =
59 include tests/local.mk