build: Switch to bootstrap from Gnulib
[riece] / Makefile.am
1 SUBDIRS = lisp doc
2 AUTOMAKE_OPTIONS = no-dependencies
3
4 if XEMACS
5 install-package package:
6         list='$(SUBDIRS)'; for subdir in $$list; do \
7           (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $@) \
8         done
9 endif
10
11 changelog_etc =                                 \
12         ChangeLog-2014                          \
13         lisp/ChangeLog-2014                     \
14         lisp/ChangeLog.Liece
15
16 EXTRA_DIST =                                    \
17   README.ja                                     \
18   NEWS.ja                                       \
19   $(changelog_etc)                              \
20   bootstrap                                     \
21   bootstrap.conf
22
23 # Arrange so that .tarball-version appears only in the distribution
24 # tarball, and never in a checked-out repository.
25 # The perl substitution is to change some key uses of "rm" to "/bin/rm".
26 # See the rm_subst comment for details.
27 dist-hook: gen-ChangeLog
28         $(AM_V_GEN)echo $(VERSION) > $(distdir)/.tarball-version
29         $(AM_V_at)perl -pi -e '$(rm_subst)' $(distdir)/Makefile.in
30
31 gen_start_date = 2014-04-12
32 .PHONY: gen-ChangeLog
33 gen-ChangeLog:
34         $(AM_V_GEN)if test -d .git; then                                \
35           $(top_srcdir)/build-aux/gitlog-to-changelog                   \
36             --amend=$(srcdir)/build-aux/git-log-fix                     \
37             --since=$(gen_start_date) > $(distdir)/cl-t;                \
38           rm -f $(distdir)/ChangeLog;                                   \
39           mv $(distdir)/cl-t $(distdir)/ChangeLog;                      \
40         fi