summaryrefslogtreecommitdiff
path: root/Makefile.am
diff options
context:
space:
mode:
authorBehdad Esfahbod <behdad@behdad.org>2009-03-16 18:07:50 -0400
committerBehdad Esfahbod <behdad@behdad.org>2009-03-16 18:23:21 -0400
commita08ef98448054f28d686d8bba8850e44056e33d7 (patch)
tree9369597e20f808a765477a1e897fa91e02eff8f1 /Makefile.am
parentc82e8ad9dda142b1acfbcb86054750e082600893 (diff)
downloadpango-a08ef98448054f28d686d8bba8850e44056e33d7.tar.gz
[Makefile.am] Generage ChangeLog from git-log
Diffstat (limited to 'Makefile.am')
-rw-r--r--Makefile.am17
1 files changed, 17 insertions, 0 deletions
diff --git a/Makefile.am b/Makefile.am
index 62b5a573..cec2a04d 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -49,8 +49,25 @@ MAINTAINERCLEANFILES = \
$(srcdir)/mkinstalldirs \
$(srcdir)/omf.make \
$(srcdir)/xmldocs.make \
+ $(srcdir)/ChangeLog \
`find "$(srcdir)" -type f -name Makefile.in -print`
+ChangeLog: $(srcdir)/ChangeLog
+$(srcdir)/ChangeLog:
+ @echo Creating $@
+ @if test -d "$(srcdir)/.git"; then \
+ (GIT_DIR=$(top_srcdir)/.git ./missing --run git log 1.23.0^^.. --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: $(srcdir)/ChangeLog
+
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = pango.pc