]> diplodocus.org Git - nmh/blobdiff - Makefile.am
Whoops, I need to make sure the buffer I pass to putcomp() is NULL-terminated.
[nmh] / Makefile.am
index 1a93d89c1293a2bc5dba1b2979ffde10672e1344..cd3c886c649233982b1ae6d777d647ade7b4655d 100644 (file)
@@ -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