From 732551c535ffb6100c2ab3f919e1554834ef7f14 Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Tue, 22 Oct 2013 15:15:33 -0400 Subject: Makefile.am: Generate ChangeLog in dist-hook. --- diff --git a/Makefile.am b/Makefile.am index c3d076b..286a770 100644 --- a/Makefile.am +++ b/Makefile.am @@ -40,6 +40,14 @@ reallyclean: distclean $(srcdir)/build-aux/ $(srcdir)/INSTALL $(srcdir)/Makefile.in \ $(srcdir)/ChangeLog +dist-hook: + if [ -d '$(srcdir)/.git' ]; then \ + printf 'Generated file. Do not edit.\n\n' \ + >'$(distdir)/ChangeLog~'; \ + git log --stat >>'$(distdir)/ChangeLog~'; \ + mv '$(distdir)/ChangeLog~' '$(distdir)/ChangeLog'; \ + fi + .sh: $(MKDIR_P) "$$(dirname $@)" $(do_subst) $< >$@ -- cgit v0.9.1