diff options
-rw-r--r-- | Makefile.am | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/Makefile.am b/Makefile.am index c51060a7..a3a34af5 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 |