Prevent notifications from firing more than once per message
[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 ja_docs =                                       \
17         doc/ja/NEWS                             \
18         doc/ja/README                           \
19         doc/ja/README-hacking
20
21 BUILT_SOURCES = $(top_srcdir)/.version
22
23 EXTRA_DIST =                                    \
24         $(ja_docs)                              \
25         $(changelog_etc)                        \
26         bootstrap                               \
27         bootstrap.conf                          \
28         $(BUILT_SOURCES)
29
30 $(top_srcdir)/.version:
31         echo $(VERSION) > $@-t && mv $@-t $@
32
33 # Arrange so that .tarball-version appears only in the distribution
34 # tarball, and never in a checked-out repository.
35 # The perl substitution is to change some key uses of "rm" to "/bin/rm".
36 # See the rm_subst comment for details.
37 dist-hook: gen-ChangeLog
38         $(AM_V_GEN)echo $(VERSION) > $(distdir)/.tarball-version
39         $(AM_V_at)perl -pi -e '$(rm_subst)' $(distdir)/Makefile.in
40
41 gen_start_date = 2014-04-12
42 .PHONY: gen-ChangeLog
43 gen-ChangeLog:
44         $(AM_V_GEN)if test -d .git; then                                \
45           $(top_srcdir)/build-aux/gitlog-to-changelog                   \
46             --amend=$(srcdir)/build-aux/git-log-fix                     \
47             --since=$(gen_start_date) > $(distdir)/cl-t;                \
48           rm -f $(distdir)/ChangeLog;                                   \
49           mv $(distdir)/cl-t $(distdir)/ChangeLog;                      \
50         fi