diff options
author | P. J. McDermott <pj@pehjota.net> | 2017-07-22 10:01:28 (EDT) |
---|---|---|
committer | P. J. McDermott <pj@pehjota.net> | 2017-07-22 10:01:28 (EDT) |
commit | e6ef30aa49f172f7bc847d442f3a3997a7583d90 (patch) | |
tree | ed7bb4203859223a2f48580d0d684d65eeaca6fb | |
parent | 76c03819b6d1083975467839162cab25cf673bdc (diff) |
Makefile.am: Generate ChangeLog
-rw-r--r-- | Makefile.am | 11 |
1 files changed, 10 insertions, 1 deletions
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 $@)" |