From: David Levine Date: Sat, 28 Jan 2012 19:52:59 +0000 (-0600) Subject: Made ChangeLog phony so it will always get regenerated. But don't try to regenerated... X-Git-Url: http://git.marmaro.de/?a=commitdiff_plain;h=c8206d4f567151065bc8d896bbd6273bf12dbae3;p=mmh Made ChangeLog phony so it will always get regenerated. But don't try to regenerated if git repository is not present. --- diff --git a/Makefile.am b/Makefile.am index 1a93d89..cd3c886 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