summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stone <daniel@fooishbar.org>2006-12-06 18:58:35 +0200
committerDaniel Stone <daniels@endtroducing.fooishbar.org>2006-12-06 18:58:35 +0200
commit6a2f43119d483c1ad47b99ddec61bebcb218b534 (patch)
treee6ec2b462eb4ecda8453dd21aae8f5bb63798e87
parentec347de8a81e7af3a9b9155a9dbf703294cdfc77 (diff)
Makefile.am: make ChangeLog hook as safe as possible
-rw-r--r--Makefile.am7
1 files changed, 4 insertions, 3 deletions
diff --git a/Makefile.am b/Makefile.am
index c162f83..6af1602 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -34,6 +34,7 @@ EXTRA_DIST = xres.pc.in autogen.sh ChangeLog
CLEANFILES = ChangeLog
-ChangeLog: FORCE
- git-log > ChangeLog
-FORCE: ChangeLog
+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