From a6b2d7b20dbcf1ac19aa9bdf78a9ba575f86f7ac Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Sat, 19 Sep 2009 01:51:54 +0200 Subject: ChangeLog: automatically generate the file in dist-hook --- Makefile.am | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) (limited to 'Makefile.am') diff --git a/Makefile.am b/Makefile.am index 7751cf0..92d0c4e 100644 --- a/Makefile.am +++ b/Makefile.am @@ -13,15 +13,12 @@ dist_html_DATA = $(HTMLFILE) info_TEXINFOS = autoconf-archive.texi -EXTRA_DIST = build-aux/git-version-gen $(TEXIFILE) +EXTRA_DIST = build-aux/git-version-gen build-aux/gitlog-to-changelog $(TEXIFILE) autoconf-archive.info: $(TEXIFILE) # maintainer rules -dist-hook: - echo $(VERSION) > $(distdir)/.tarball-version - clean-local: @rm -rf $(srcdir)/stage $(srcdir)/macro.pyc @rm -f $(DIST_ARCHIVES) @@ -30,4 +27,13 @@ maintainer-clean-local: @rm -rf $(srcdir)/build-aux @rm -f configure Makefile.in aclocal.m4 AUTHORS ChangeLog @rm -f INSTALL config.log config.status configure maint.mk - @rm -f autoconf-archive-*.*.*.tar.* GNUmakefile + @rm -f autoconf-archive-*.*.*.tar.* GNUmakefile COPYING + +dist-hook: + echo $(VERSION) > $(distdir)/.tarball-version + if test -d .git; then \ + $(top_srcdir)/build-aux/gitlog-to-changelog \ + >$(distdir)/cl-t -- master $(top_srcdir)/m4; \ + rm -f $(distdir)/ChangeLog; \ + mv $(distdir)/cl-t $(distdir)/ChangeLog; \ + fi -- cgit v1.2.1