diff options
author | Daniel Stone <daniel@fooishbar.org> | 2006-12-06 18:47:33 +0200 |
---|---|---|
committer | Daniel Stone <daniels@endtroducing.fooishbar.org> | 2006-12-06 18:47:33 +0200 |
commit | 7611f14dc697b75cd7bb6493bb65b3a7ead379b8 (patch) | |
tree | ace9222c3e2f8ca75570f59bc7ee4acede5b30ce | |
parent | f2a9d2d61addc4e3d5e128d8078a04c9a136be6a (diff) |
Makefile.am: fix changelog hook
Make changelog hook safe for all situations.
-rw-r--r-- | Makefile.am | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/Makefile.am b/Makefile.am index c51060a..a3a34af 100644 --- a/Makefile.am +++ b/Makefile.am @@ -32,9 +32,7 @@ endif EXTRA_DIST = README.ati README.r128 README.ati.sgml README.r128.sgml ChangeLog -# Always regenerate the 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 |