From c05a0ed330836b4f9569b6b6c96d853b8207c33a Mon Sep 17 00:00:00 2001 From: William Jon McCann Date: Fri, 17 Nov 2006 17:33:22 -0500 Subject: Automatically generate ChangeLog. Fix autogen. Remove translation stuff. --- Makefile.am | 26 +++++++++++++++++++------- 1 file changed, 19 insertions(+), 7 deletions(-) (limited to 'Makefile.am') diff --git a/Makefile.am b/Makefile.am index 7e75475..d67905f 100644 --- a/Makefile.am +++ b/Makefile.am @@ -8,7 +8,6 @@ SUBDIRS = \ src \ tools \ data \ - po \ $(NULL) EXTRA_DIST = \ @@ -17,15 +16,9 @@ EXTRA_DIST = \ INSTALL \ README \ NEWS \ - intltool-extract.in \ - intltool-merge.in \ - intltool-update.in \ $(NULL) DISTCLEANFILES = \ - intltool-extract \ - intltool-merge \ - intltool-update \ $(NULL) MAINTAINERCLEANFILES = \ @@ -46,3 +39,22 @@ MAINTAINERCLEANFILES = \ aclocal.m4 \ $(NULL) +# Creating ChangeLog from git log (taken from cairo/Makefile.am): + +ChangeLog: $(srcdir)/ChangeLog + +$(srcdir)/ChangeLog: + @if test -d "$(srcdir)/.git"; then \ + (cd "$(srcdir)" && \ + ./missing --run git-log --stat) | 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 $(srcdir)/ChangeLog -- cgit