Makefile.am: fix changelog hook

Make changelog hook safe for all situations.
This commit is contained in:
Daniel Stone
2006-12-06 18:47:33 +02:00
committed by Daniel Stone
parent f2a9d2d61a
commit 7611f14dc6

View File

@@ -32,9 +32,7 @@ endif
EXTRA_DIST = README.ati README.r128 README.ati.sgml README.r128.sgml ChangeLog
# Always regenerate the changelog
CLEANFILES = ChangeLog
ChangeLog: FORCE
git-log > ChangeLog
FORCE:
ChangeLog:
(GIT_DIR=$(top_srcdir)/.git git-log > .changelog.tmp && mv .changelog.tmp ChangeLog; rm -f .changelog.tmp) || (touch ChangeLog; echo 'git directory not found: installing possibly empty changelog.' >&2)
dist-hook: ChangeLog