From: Ken Hornstein Date: Wed, 20 Feb 2013 02:57:32 +0000 (-0500) Subject: Make generating the ChangeLog work if you're building a distribution from X-Git-Url: https://diplodocus.org/git/nmh/commitdiff_plain/3ebe483990c97d6482968c1b1aa0687ea28dcf2b?ds=inline;hp=030c6e4df060fcbc33db4495148267e90c960d9d Make generating the ChangeLog work if you're building a distribution from an object directory. --- 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.