diff options
author | Dan Nicholson <dbn.lists@gmail.com> | 2008-05-22 07:07:29 -0700 |
---|---|---|
committer | Dan Nicholson <dbn.lists@gmail.com> | 2008-05-22 07:07:44 -0700 |
commit | ab2deff4eae5954e02bed2f01fbf81d2300b82fb (patch) | |
tree | 997dc6f3dfeac5d5e816d970654da926ec68d9af /Makefile.am | |
parent | f68c246e2f2bbf2e52d0369bb195ff7aedb3c72a (diff) |
Fix ChangeLog generation in distcheck
Fixed the ChangeLog target for all the various situations it might fail
in distcheck.
Diffstat (limited to 'Makefile.am')
-rw-r--r-- | Makefile.am | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/Makefile.am b/Makefile.am index a8e099a..829530c 100644 --- a/Makefile.am +++ b/Makefile.am @@ -7,7 +7,14 @@ EXTRA_DIST = ChangeLog .PHONY: ChangeLog ChangeLog: - git --git-dir="$(srcdir)/.git" log > $@ + @if test -d $(srcdir)/.git; then \ + echo git --git-dir="$(srcdir)/.git" log > $@; \ + git --git-dir="$(srcdir)/.git" log > $@; \ + elif test -f $(srcdir)/ChangeLog; then \ + touch $(srcdir)/$@; \ + else \ + touch $@; \ + fi dist-hook: ChangeLog |