summaryrefslogtreecommitdiff
path: root/Makefile.am
diff options
context:
space:
mode:
authorDaniel Stone <daniel@fooishbar.org>2006-12-06 18:57:29 +0200
committerDaniel Stone <daniels@endtroducing.fooishbar.org>2006-12-06 18:57:29 +0200
commit38855c00c9efe88af97a5f8208c2e6aef0e9e93f (patch)
tree5adf3ded7b7cf2047d914ac44bb595c2bb0c9a41 /Makefile.am
parent111a9501c2c01d4b4f00ed221035953bfb256898 (diff)
Makefile.am: make ChangeLog hook safer
Make ChangeLog hook as safe as possible.
Diffstat (limited to 'Makefile.am')
-rw-r--r--Makefile.am7
1 files changed, 4 insertions, 3 deletions
diff --git a/Makefile.am b/Makefile.am
index 6c9926a..77246ed 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -27,9 +27,10 @@ pkgconfig_DATA = fontenc.pc
EXTRA_DIST = fontenc.pc.in autogen.sh 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
if LINT
lint: