diff options
author | Daniel Stone <daniel@fooishbar.org> | 2006-12-06 18:58:35 +0200 |
---|---|---|
committer | Daniel Stone <daniels@endtroducing.fooishbar.org> | 2006-12-06 18:58:35 +0200 |
commit | 6a2f43119d483c1ad47b99ddec61bebcb218b534 (patch) | |
tree | e6ec2b462eb4ecda8453dd21aae8f5bb63798e87 /Makefile.am | |
parent | ec347de8a81e7af3a9b9155a9dbf703294cdfc77 (diff) | |
download | xorg-lib-libXRes-6a2f43119d483c1ad47b99ddec61bebcb218b534.tar.gz |
Makefile.am: make ChangeLog hook as safe as possible
Diffstat (limited to 'Makefile.am')
-rw-r--r-- | Makefile.am | 7 |
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 |