summaryrefslogtreecommitdiff
path: root/Makefile.am
diff options
context:
space:
mode:
authorStef Walter <stef@thewalter.net>2010-10-28 01:05:14 +0000
committerStef Walter <stef@thewalter.net>2011-01-23 15:47:45 -0600
commitbe6176d7ef5272d7b26ef4d9a1ecd8763fc91488 (patch)
treecc32ee6aaea027c07447bbc194fd558cabd34390 /Makefile.am
parent2ada2c782d10375c51525f24e521bf213882177f (diff)
Reorganize to better match git.
Diffstat (limited to 'Makefile.am')
-rw-r--r--Makefile.am13
1 files changed, 12 insertions, 1 deletions
diff --git a/Makefile.am b/Makefile.am
index 33d8e51..0b6be3c 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -3,5 +3,16 @@ EXTRA_DIST = config.sub acsite.m4 config.guess scripts common
SUBDIRS = src doc
dist-hook:
- rm -rf `find $(distdir)/ -name CVS`
+ @if test -d "$(srcdir)/.git"; \
+ then \
+ echo Creating ChangeLog && \
+ ( cd "$(top_srcdir)" && \
+ echo '# Generate automatically. Do not edit.'; echo; \
+ $(top_srcdir)/missing --run git log --stat --date=short ) > ChangeLog.tmp \
+ && mv -f ChangeLog.tmp $(top_distdir)/ChangeLog \
+ || ( rm -f ChangeLog.tmp ; \
+ echo Failed to generate ChangeLog >&2 ); \
+ else \
+ echo A git clone is required to generate a ChangeLog >&2; \
+ fi