Improve the speedo make script.
[gnupg.git] / Makefile.am
index 23edae4..08b5d32 100644 (file)
 ## Process this file with automake to produce Makefile.in
 
 ACLOCAL_AMFLAGS = -I m4 -I gl/m4
-AUTOMAKE_OPTIONS = dist-bzip2 no-dist-gzip
-DISTCHECK_CONFIGURE_FLAGS = --enable-symcryptrun --enable-mailto
+DISTCHECK_CONFIGURE_FLAGS = --enable-symcryptrun --enable-mailto --enable-gpgtar
 
-EXTRA_DIST = scripts/config.rpath scripts/potomo autogen.sh README.GIT
+GITLOG_TO_CHANGELOG=gitlog-to-changelog
+
+EXTRA_DIST = scripts/config.rpath scripts/potomo autogen.sh README.GIT \
+            ChangeLog-2011 po/ChangeLog-2011 scripts/ChangeLog-2011 \
+            scripts/gitlog-to-changelog \
+            scripts/git-log-fix scripts/git-log-footer \
+            scripts/speedo.mk
 DISTCLEANFILES = g10defs.h
 
 if BUILD_GPGSM
@@ -77,10 +82,10 @@ else
 doc =
 endif
 
-if HAVE_W32_SYSTEM
-tests =
-else
+if RUN_TESTS
 tests = tests
+else
+tests =
 endif
 
 SUBDIRS = m4 gl include common ${kbx} \
@@ -90,7 +95,7 @@ SUBDIRS = m4 gl include common ${kbx} \
 dist_doc_DATA = README
 
 
-dist-hook:
+dist-hook: gen-ChangeLog
        echo "$(VERSION)" > $(distdir)/VERSION
 
 if HAVE_W32_SYSTEM
@@ -106,5 +111,20 @@ install-data-hook:
        done
 endif
 
+
+gen_start_date = 2011-12-01T06:00:00
+.PHONY: gen-ChangeLog
+gen-ChangeLog:
+       if test -d $(top_srcdir)/.git; then                             \
+         (cd $(top_srcdir) &&                                          \
+           $(GITLOG_TO_CHANGELOG) --append-dot --tear-off              \
+           --amend=scripts/git-log-fix                                 \
+           --since=$(gen_start_date) ) > $(distdir)/cl-t;              \
+          cat $(top_srcdir)/scripts/git-log-footer >> $(distdir)/cl-t;  \
+         rm -f $(distdir)/ChangeLog;                                   \
+         mv $(distdir)/cl-t $(distdir)/ChangeLog;                      \
+       fi
+
+
 stowinstall:
        $(MAKE) $(AM_MAKEFLAGS) install prefix=/usr/local/stow/gnupg