summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Makefile.am9
1 files changed, 6 insertions, 3 deletions
diff --git a/Makefile.am b/Makefile.am
index 22d1a59..7d63db1 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -27,6 +27,9 @@ distcheck-hook:
fi
dist-hook:
- $(top_srcdir)/build-aux/gitlog-to-changelog --since=2008-01-01 \
- > $(distdir)/cl-t
- mv $(distdir)/cl-t $(distdir)/ChangeLog
+ if test -d .git; then \
+ $(top_srcdir)/build-aux/gitlog-to-changelog --since=2008-01-01 \
+ > $(distdir)/cl-t; \
+ rm -f $(distdir)/ChangeLog; \
+ mv $(distdir)/cl-t $(distdir)/ChangeLog; \
+ fi