aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile.am
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2010-04-03 05:51:41 +0800
committerMatthew Barnes <mbarnes@redhat.com>2010-04-03 06:18:33 +0800
commit26240e0b180bdaf92702e513a21da2f859883fb3 (patch)
tree6a3a27c69755355161ab07f300446908bc2d154b /Makefile.am
parent167b482c9e39a093dcfecc5ef430261c0504e370 (diff)
downloadgsoc2013-evolution-26240e0b180bdaf92702e513a21da2f859883fb3.tar.gz
gsoc2013-evolution-26240e0b180bdaf92702e513a21da2f859883fb3.tar.zst
gsoc2013-evolution-26240e0b180bdaf92702e513a21da2f859883fb3.zip
Generate ChangeLog files for tarball releases.
Remove old ChangeLog files that predate our switch to git.
Diffstat (limited to 'Makefile.am')
-rw-r--r--Makefile.am21
1 files changed, 16 insertions, 5 deletions
diff --git a/Makefile.am b/Makefile.am
index d17b4e158b..7d55435953 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -1,9 +1,5 @@
ACLOCAL_AMFLAGS=-I m4
-changelogs = \
- ChangeLog \
- ChangeLog.pre-1-4
-
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = \
evolution-calendar.pc \
@@ -13,7 +9,6 @@ pkgconfig_DATA = \
EXTRA_DIST = \
AUTHORS \
- $(changelogs) \
COPYING-DOCS \
COPYING.LGPL2 \
COPYING.LGPL3 \
@@ -110,4 +105,20 @@ DISTCHECK_CONFIGURE_FLAGS = \
--enable-test-component \
--with-help
+# Generate a ChangeLog file from 'git log'
+dist-hook:
+ @if test -d "$(srcdir)/.git"; \
+ then \
+ echo Creating ChangeLog && \
+ ( cd "$(top_srcdir)" && \
+ echo '# Generated by Makefile. Do not edit.'; echo; \
+ $(top_srcdir)/missing --run git log --stat \
+ EVOLUTION_2_30_0..) > 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
+
-include $(top_srcdir)/git.mk