diff options
author | P. J. McDermott <pjm@nac.net> | 2014-03-02 14:59:23 (EST) |
---|---|---|
committer | P. J. McDermott <pjm@nac.net> | 2014-03-02 14:59:23 (EST) |
commit | 580f3650ea8c3c01e5f8b0986df36822033225b5 (patch) | |
tree | 2b5a9aadd3073288e035a35726ac54ddde3b5409 /Makefile.am | |
parent | cd5322592bdc65713f782b2005a329fb426a901c (diff) |
Generate ChangeLog.
Diffstat (limited to 'Makefile.am')
-rw-r--r-- | Makefile.am | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/Makefile.am b/Makefile.am index 5ae8b1b..dbcd47b 100644 --- a/Makefile.am +++ b/Makefile.am @@ -115,7 +115,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 >>'$(distdir)/ChangeLog~'; \ + mv '$(distdir)/ChangeLog~' '$(distdir)/ChangeLog'; \ + fi test: @set -e; \ |