summaryrefslogtreecommitdiff
path: root/Makefile.am
diff options
context:
space:
mode:
authorStef Walter <stef@memberwebs.com>2009-10-29 22:45:13 +0000
committerStef Walter <stef@memberwebs.com>2009-10-29 22:45:24 +0000
commit47c7b529cc46f0974f9ef954c90dd6495c14c6d6 (patch)
tree2f613e85352f54a74925afa854aa1edc13f9b539 /Makefile.am
parent70ccf1622c31ae7b925510735a16425592813cfe (diff)
Cleanup build process.
* Integrate better with git. * Git based ChangeLog * NEWS now does it's proper job.
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 13a52bf..e8a2ece 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -2,5 +2,16 @@
SUBDIRS = module tests
dist-hook:
- rm -rf `find $(distdir)/ -name '.??*'`
+ @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