[paperbox] Add makefile rules to generate ChangeLog



commit 02184763ea24030316ccd5bb0481c6a738dfd902
Author: Marko Anastasov <marko renderedtext com>
Date:   Fri Apr 17 23:40:04 2009 +0200

    Add makefile rules to generate ChangeLog
---
 Makefile.am |   21 +++++++++++++++++++++
 1 files changed, 21 insertions(+), 0 deletions(-)

diff --git a/Makefile.am b/Makefile.am
index 366c455..6e6f704 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -22,3 +22,24 @@ DISTCLEANFILES = intltool-extract \
                  po/.intltool-merge-cache
 
 DISTCHECK_CONFIGURE_FLAGS = --disable-scrollkeeper
+
+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 0.4.1-2008-12-16.. --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



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]