maint: update all copyright dates via "make update-copyright"
[cppi.git] / Makefile.am
blob9c69dec62ba5e498b1fbdefa9bde20745a176af5
1 ## Process this file with automake to produce Makefile.in.
3 AUTOMAKE_OPTIONS = subdir-objects
4 SUBDIRS = po
6 ACLOCAL_AMFLAGS = -I m4
8 EXTRA_DIST = cfg.mk maint.mk .prev-version $(top_srcdir)/.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
19 # dependency:
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
29 .PHONY: gen-ChangeLog
30 gen-ChangeLog:
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;                      \
36         fi
38 BUILT_SOURCES = $(top_srcdir)/.version
39 $(top_srcdir)/.version:
40         echo $(VERSION) > $@-t && mv $@-t $@
42 distcheck-hook:
43         $(MAKE) my-distcheck
45 ###############################################
46 # Initialization before completion by local.mk's.
47 AM_CFLAGS = $(WARNING_CFLAGS) $(WERROR_CFLAGS)
48 AM_CPPFLAGS =
49 CLEANFILES =
50 DISTCLEANFILES =
51 MAINTAINERCLEANFILES =
52 MOSTLYCLEANFILES =
53 noinst_LIBRARIES =
54 SUFFIXES =
56 include lib/local.mk
57 include src/local.mk
58 include man/local.mk
59 include tests/local.mk