From 3ebe483990c97d6482968c1b1aa0687ea28dcf2b Mon Sep 17 00:00:00 2001 From: Ken Hornstein Date: Tue, 19 Feb 2013 21:57:32 -0500 Subject: [PATCH] Make generating the ChangeLog work if you're building a distribution from an object directory. --- Makefile.am | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile.am b/Makefile.am index 3952da6a..48b2ba80 100644 --- a/Makefile.am +++ b/Makefile.am @@ -596,8 +596,8 @@ cleanman: ## Don't include commit hashes in ChangeLog. ChangeLog: - @[ -d .git ] && git --no-pager log --abbrev-commit | \ - egrep -v '^commit [0-9a-f]+$$' > $@ || true + @[ -d $(srcdir)/.git ] && (cd $(srcdir); 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. -- 2.56.0