summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorinfirit <[email protected]>2014-02-16 17:15:23 +0100
committerinfirit <[email protected]>2014-02-16 17:15:23 +0100
commitf49d994c43b1df6da89aab349cb037195b9a1a2e (patch)
tree804561ee069a5ec6fbacd447dd95aa11d1043de0
parent78dba8af1446d25635865350ad778423c7d33199 (diff)
downloadmate-icon-theme-f49d994c43b1df6da89aab349cb037195b9a1a2e.tar.bz2
mate-icon-theme-f49d994c43b1df6da89aab349cb037195b9a1a2e.tar.xz
Add dist-hook for ChangeLog
-rw-r--r--Makefile.am13
1 files changed, 13 insertions, 0 deletions
diff --git a/Makefile.am b/Makefile.am
index eba1660..3e3be0d 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -113,3 +113,16 @@ MAINTAINERCLEANFILES = \
po/Makefile.in.in \
po/$(GETTEXT_PACKAGE).pot
+dist-hook:
+ @if test -d "$(srcdir)/.git"; \
+ then \
+ echo Creating ChangeLog && \
+ ( cd "$(top_srcdir)" && \
+ echo '# Generated by Makefile. Do not edit.'; echo; \
+ $(top_srcdir)/missing --run git log ) > ChangeLog.tmp \
+ && mv -f ChangeLog.tmp $(distdir)/ChangeLog \
+ || ( rm -f ChangeLog.tmp ; \
+ echo Failed to generate ChangeLog >&2 ); \
+ else \
+ echo A git clone is required to generate a ChangeLog >&2; \
+ fi