aboutsummaryrefslogtreecommitdiff
path: root/Makefile.am
diff options
context:
space:
mode:
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>2015-11-16 15:15:09 +0100
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2015-11-16 15:15:09 +0100
commitfcf7848c041eedb18a08b71aa75c59540aa042db (patch)
tree69f1b02f5617005ba86b1e38319644238609c42f /Makefile.am
parent656e57dc8f496243632fa0cc0037d8f7f1a58a90 (diff)
downloadayatana-ido-fcf7848c041eedb18a08b71aa75c59540aa042db.tar.gz
ayatana-ido-fcf7848c041eedb18a08b71aa75c59540aa042db.tar.bz2
ayatana-ido-fcf7848c041eedb18a08b71aa75c59540aa042db.zip
Makefile.am
Makefile.am: Add dist-hooks rule.
Diffstat (limited to 'Makefile.am')
-rw-r--r--Makefile.am26
1 files changed, 26 insertions, 0 deletions
diff --git a/Makefile.am b/Makefile.am
index 7e02e2e..5193b58 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -52,4 +52,30 @@ EXTRA_DIST = libayatana-ido.pc.in libayatana-ido3.pc.in
DISTCHECK_CONFIGURE_FLAGS = --disable-gtk-doc
+dist-hook:
+ @if test -d "$(top_srcdir)/.git"; \
+ then \
+ echo Creating ChangeLog && \
+ ( cd "$(top_srcdir)" && \
+ echo '# Generated by Makefile. Do not edit.'; echo; \
+ $(top_srcdir)/missing --run git --no-pager log --since "1970" --format="%ai %aN (%h) %n%n%x09*%w(68,0,10) %s%d%n") > ChangeLog.tmp \
+ && mv -f ChangeLog.tmp $(top_distdir)/ChangeLog \
+ || (rm -f ChangeLog.tmp; \
+ echo Failed to generate ChangeLog >&2 ); \
+ else \
+ echo Failed to generate ChangeLog: not a branch >&2; \
+ fi
+ @if test -d "$(top_srcdir)/.git"; \
+ then \
+ echo Creating AUTHORS && \
+ ( cd "$(top_srcdir)" && \
+ echo '# Generated by Makefile. Do not edit.'; echo; \
+ $(top_srcdir)/missing --run git log | grep -e "^Author:" -e "Committer:" | cut -d ":" -f 2 | cut -d "<" -f 1 | sort -u) > AUTHORS.tmp \
+ && mv -f AUTHORS.tmp $(top_distdir)/AUTHORS \
+ || (rm -f AUTHORS.tmp; \
+ echo Failed to generate AUTHORS >&2 ); \
+ else \
+ echo Failed to generate AUTHORS: not a branch >&2; \
+ fi
+
include $(top_srcdir)/Makefile.am.coverage