summaryrefslogtreecommitdiff
path: root/Makefile.am
diff options
context:
space:
mode:
authorDaniel Stone <daniel@fooishbar.org>2006-12-06 18:48:37 +0200
committerDaniel Stone <daniels@endtroducing.fooishbar.org>2006-12-06 18:48:37 +0200
commit6d02bdb71bb34205955e76a99939a7be34c676c7 (patch)
treeb21963dd1f648108af890cd903a4a173c7280795 /Makefile.am
parent33e10132a87409bdfa77d5eef9f7044cb9ce1ac9 (diff)
Makefile.am: make ChangeLog hook safer
Make ChangeLog hook as safe as possible.
Diffstat (limited to 'Makefile.am')
-rw-r--r--Makefile.am10
1 files changed, 6 insertions, 4 deletions
diff --git a/Makefile.am b/Makefile.am
index 3a02f4e..3924813 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -23,8 +23,10 @@ SUBDIRS = src man
EXTRA_DIST = README.NV1 ChangeLog
-# Always regenerate the changelog
CLEANFILES = ChangeLog
-ChangeLog: FORCE
- git-log > ChangeLog
-FORCE:
+.PHONY: 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