diff options
author | Daniel Stone <daniel@fooishbar.org> | 2006-12-06 18:48:37 +0200 |
---|---|---|
committer | Daniel Stone <daniels@endtroducing.fooishbar.org> | 2006-12-06 18:48:37 +0200 |
commit | 6d02bdb71bb34205955e76a99939a7be34c676c7 (patch) | |
tree | b21963dd1f648108af890cd903a4a173c7280795 | |
parent | 33e10132a87409bdfa77d5eef9f7044cb9ce1ac9 (diff) |
Makefile.am: make ChangeLog hook safer
Make ChangeLog hook as safe as possible.
-rw-r--r-- | Makefile.am | 10 |
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 |