From e793178adbd7d0d2202c0ab4bc6a9fec1df8851f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludovic=20Court=C3=A8s?= Date: Sun, 12 May 2013 16:14:25 +0200 Subject: [PATCH] build: Generate a ChangeLog file upon "make dist". * Makefile.am (sync-synopses): New rule, formerly `dist-hook. (gen-ChangeLog): New rule. (dist-hook): Depend on these two targets. --- ChangeLog | 5 ++++- Makefile.am | 14 +++++++++++++- 2 files changed, 17 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 83deffcada..d6ea694326 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1 +1,4 @@ -Please see the Git commit log at . +Normally a ChangeLog is generated at "make dist" time and available in +source tarballs. + +If not, see the Git commit log at . diff --git a/Makefile.am b/Makefile.am index 69b4af013a..538fad32a4 100644 --- a/Makefile.am +++ b/Makefile.am @@ -412,6 +412,18 @@ AM_DISTCHECK_CONFIGURE_FLAGS = \ --with-nix-prefix="$(NIX_PREFIX)" \ --enable-daemon -dist-hook: +dist-hook: sync-synopses gen-ChangeLog + +sync-synopses: -$(top_builddir)/pre-inst-env $(GUILE) \ $(top_srcdir)/build-aux/sync-synopses.scm + +gen-ChangeLog: + if test -d .git; then \ + $(top_srcdir)/build-aux/gitlog-to-changelog \ + > $(distdir)/cl-t; \ + rm -f $(distdir)/ChangeLog; \ + mv $(distdir)/cl-t $(distdir)/ChangeLog; \ + fi + +.PHONY: sync-synopses gen-ChangeLog