From 2ec3ed0806cfd2cd17cae4117a7047451a52cf95 Mon Sep 17 00:00:00 2001 From: Keith Packard Date: Sun, 3 Sep 2006 14:58:49 -0700 Subject: Update instructions for doing a release. Autogen ChangeLog from git-log. --- Makefile.am | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) (limited to 'Makefile.am') diff --git a/Makefile.am b/Makefile.am index e316d8a8..1b28303a 100644 --- a/Makefile.am +++ b/Makefile.am @@ -32,6 +32,21 @@ EXTRA_DIST = \ fontconfig.spec.in \ fontconfig.spec \ fontconfig-zip.in +DISTCLEANFILES = config.cache +MAINTAINERCLEANFILES = \ + $(srcdir)/aclocal.m4 \ + $(srcdir)/autoscan.log \ + $(srcdir)/compile \ + $(srcdir)/config.guess \ + $(srcdir)/config.h.in \ + $(srcdir)/config.sub \ + $(srcdir)/configure.scan \ + $(srcdir)/depcomp \ + $(srcdir)/install-sh \ + $(srcdir)/ltmain.sh \ + $(srcdir)/missing \ + $(srcdir)/mkinstalldirs \ + `find "$(srcdir)" -type f -name Makefile.in -print` pkgconfigdir=$(libdir)/pkgconfig pkgconfig_DATA = fontconfig.pc @@ -45,6 +60,30 @@ else RUN_FC_CACHE_TEST=test -z "$(DESTDIR)" endif +# Creating ChangeLog from git log: + +MAINTAINERCLEANFILES += ChangeLog + +EXTRA_DIST += ChangeLog + +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 + install-data-local: $(mkinstalldirs) $(DESTDIR)$(configdir) if [ -f $(DESTDIR)$(configdir)/fonts.conf ]; then \ -- cgit v1.2.3