X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/44ca45ed32921dbd1945065fc8fff2467acafb13..aaf31d46368bcf63f7ae4b0019ef09d098f98491:/Makefile.am diff --git a/Makefile.am b/Makefile.am index 1a93d89c..cd3c886c 100644 --- a/Makefile.am +++ b/Makefile.am @@ -486,8 +486,12 @@ man/man.sed: Makefile ## Don't include commit hashes in ChangeLog. ChangeLog: - @git --no-pager log --abbrev-commit | \ - egrep -v '^commit [0-9a-f]+$$' > $@ + @[ -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