diff options
Diffstat (limited to 'Makefile.am')
-rw-r--r-- | Makefile.am | 21 |
1 files changed, 18 insertions, 3 deletions
diff --git a/Makefile.am b/Makefile.am index a059794..830d06b 100644 --- a/Makefile.am +++ b/Makefile.am @@ -43,8 +43,8 @@ ACLOCAL_AMFLAGS = -I m4 # subdirectories in the distribution SUBDIRS = lib src doc po tests util testenv -EXTRA_DIST = ChangeLog.README MAILING-LIST \ - msdos/ChangeLog msdos/config.h msdos/Makefile.DJ \ +EXTRA_DIST = MAILING-LIST \ + msdos/config.h msdos/Makefile.DJ \ msdos/Makefile.WC ABOUT-NLS \ build-aux/build_info.pl build-aux/git-version-gen .version @@ -60,5 +60,20 @@ clean-generic: # Arrange so that .tarball-version appears only in the distribution # tarball, and never in a checked-out repository. -dist-hook: +dist-hook: gen-ChangeLog $(AM_V_GEN)echo $(VERSION) > $(distdir)/.tarball-version + +gen_start_date = 2014-12-10 +.PHONY: gen-ChangeLog +gen-ChangeLog: + $(AM_V_GEN)if test -d .git; then \ + log_fix="$(srcdir)/build-aux/git-log-fix"; \ + test -e "$$log_fix" \ + || amend_git_log=; \ + $(top_srcdir)/build-aux/gitlog-to-changelog \ + $$amend_git_log --since=$(gen_start_date) > $(distdir)/cl-t && \ + echo >> $(distdir)/cl-t && \ + cat ChangeLog-2014-12-10 >> $(distdir)/cl-t && \ + { rm -f $(distdir)/ChangeLog && \ + mv $(distdir)/cl-t $(distdir)/ChangeLog; } \ + fi |