summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Larsson <alexl@redhat.com>2009-04-17 13:58:30 +0200
committerAlexander Larsson <alexl@redhat.com>2009-04-17 13:58:30 +0200
commit8acf8338c97387af3b93793760a3b1d64e752a2c (patch)
tree767e22453eedd822f060d2fdb24232faed6b7296
parent3f4a5c97a23acbca33836d14edb2b5c8798a6dc5 (diff)
downloadnautilus-8acf8338c97387af3b93793760a3b1d64e752a2c.tar.gz
Add makefile rules to generate ChangeLog
-rw-r--r--Makefile.am21
1 files changed, 21 insertions, 0 deletions
diff --git a/Makefile.am b/Makefile.am
index 8d2b5bf8a..61d117cea 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -58,3 +58,24 @@ DISTCLEANFILES = \
intltool-update
DISTCHECK_CONFIGURE_FLAGS = --disable-update-mimedb --enable-gtk-doc
+
+distclean-local:
+ if test $(srdcir) = .; then :; else \
+ rm -f ChangeLog; \
+ fi
+
+ChangeLog:
+ @echo Creating $@
+ @if test -d "$(srcdir)/.git"; then \
+ (GIT_DIR=$(top_srcdir)/.git ./missing --run git log NAUTILUS2_26_2.. --stat -M -C --name-status --date=short --no-color) | fmt --split-only > $@.tmp \
+ && mv -f $@.tmp $@ \
+ || ($(RM) $@.tmp; \
+ echo Failed to generate ChangeLog, your ChangeLog may be outdated >&2; \
+ (test -f $@ || echo git-log is required to generate this file >> $@)); \
+ else \
+ test -f $@ || \
+ (echo A git checkout and git-log is required to generate ChangeLog >&2 && \
+ echo A git checkout and git-log is required to generate this file >> $@); \
+ fi
+
+.PHONY: ChangeLog