X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/b91c842af55ec941131fdf7b09bfdf9b3124094d..aaf31d46368bcf63f7ae4b0019ef09d098f98491:/Makefile.am diff --git a/Makefile.am b/Makefile.am index 413e3f5c..cd3c886c 100644 --- a/Makefile.am +++ b/Makefile.am @@ -46,9 +46,9 @@ MAINTAINERCLEANFILES = cscope.files cscope.out ## ## And our own superclean, to get everything left by maintainer-clean. ## -SUPERCLEANFILES = Makefile.in aclocal.m4 compile config.guess config.h.in \ - config.h.in~ config.sub configure depcomp install-sh missing \ - ylwrap nmh-*.tar.gz +SUPERCLEANFILES = ChangeLog Makefile.in aclocal.m4 compile config.guess \ + config.h.in config.h.in~ config.sub configure depcomp \ + install-sh missing ylwrap nmh-*.tar.gz superclean: maintainer-clean @rm -f $(SUPERCLEANFILES) .PHONY: superclean @@ -484,6 +484,15 @@ man/man.sed: Makefile .man.$(manext8): $(SED) -f man/man.sed $< > $@ +## Don't include commit hashes in ChangeLog. +ChangeLog: + @[ -d .git ] && git --no-pager log --abbrev-commit | \ + egrep -v '^commit [0-9a-f]+$$' > $@ || true +## Make ChangeLog phony so it will always get regenerated. But don't +## fail if we don't have a git repository in order to allow +## regeneration of distribution archive or RPM. +.PHONY: ChangeLog + ## ## Our RPM build target ##