diff options
author | Stef Walter <stef@memberwebs.com> | 2009-10-29 22:45:13 +0000 |
---|---|---|
committer | Stef Walter <stef@memberwebs.com> | 2009-10-29 22:45:24 +0000 |
commit | 47c7b529cc46f0974f9ef954c90dd6495c14c6d6 (patch) | |
tree | 2f613e85352f54a74925afa854aa1edc13f9b539 /Makefile.am | |
parent | 70ccf1622c31ae7b925510735a16425592813cfe (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.am | 13 |
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 |