From c8206d4f567151065bc8d896bbd6273bf12dbae3 Mon Sep 17 00:00:00 2001 From: David Levine Date: Sat, 28 Jan 2012 13:52:59 -0600 Subject: [PATCH] Made ChangeLog phony so it will always get regenerated. But don't try to regenerated if git repository is not present. --- Makefile.am | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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 -- 1.7.10.4