From e6ef30aa49f172f7bc847d442f3a3997a7583d90 Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Sat, 22 Jul 2017 10:01:28 -0400 Subject: Makefile.am: Generate ChangeLog --- diff --git a/Makefile.am b/Makefile.am index 20d14d1..b2e117d 100644 --- a/Makefile.am +++ b/Makefile.am @@ -98,7 +98,16 @@ uninstall-hook: really-clean: distclean rm -Rf $(srcdir)/aclocal.m4 $(srcdir)/autom4te.cache/ \ $(srcdir)/configure \ - $(srcdir)/build-aux/ $(srcdir)/INSTALL $(srcdir)/Makefile.in + $(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 --color=never >>'$(distdir)/ChangeLog~'; \ + mv '$(distdir)/ChangeLog~' '$(distdir)/ChangeLog'; \ + fi .sh: $(AM_V_GEN)$(MKDIR_P) "$$(dirname $@)" -- cgit v0.9.1