diff options
author | Daniel Stone <daniel@fooishbar.org> | 2006-12-06 18:56:56 +0200 |
---|---|---|
committer | Daniel Stone <daniels@endtroducing.fooishbar.org> | 2007-04-10 23:28:31 +0300 |
commit | 45615d9a16a219da47aac95bafc914e454e84977 (patch) | |
tree | c72be42b7988041663f018884ad905a7b9d1bee9 | |
parent | 8ee33d7f4f7f428e3995f767deed22a4c46f2eca (diff) |
Makefile.am: make ChangeLog hook safer
Make ChangeLog hook as safe as possible.
-rw-r--r-- | Makefile.am | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile.am b/Makefile.am index 48b6eea..0693217 100644 --- a/Makefile.am +++ b/Makefile.am @@ -14,6 +14,6 @@ CLEANFILES = ChangeLog .PHONY: ChangeLog ChangeLog: - GIT_DIR=${srcdir}/.git 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 |