summaryrefslogtreecommitdiff
path: root/Makefile.am
diff options
context:
space:
mode:
authorDaniel Stone <daniel@fooishbar.org>2006-12-06 18:53:54 +0200
committerDaniel Stone <daniels@endtroducing.fooishbar.org>2006-12-06 18:53:54 +0200
commitab0f05dcfb5537ba5aec7e48ddb713d4fdba7e75 (patch)
treeac2686c185255bdc552e76afb921950f7c60a60b /Makefile.am
parentda20e256b786eaa6357e3d55baa9e90e38f14614 (diff)
Makefile.am: make ChangeLog hook safer
Make ChangeLog hook as safe as possible.
Diffstat (limited to 'Makefile.am')
-rw-r--r--Makefile.am2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile.am b/Makefile.am
index 687e1d7..0657bc6 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -51,7 +51,7 @@ EXTRA_DIST = xfont.pc.in autogen.sh include/X11/fonts/fontconf.h.in ChangeLog
CLEANFILES = ChangeLog
ChangeLog:
- git-log > 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