From 29c6f6984228bec38b38d535c44f996faf57d779 Mon Sep 17 00:00:00 2001 From: infirit Date: Tue, 22 Oct 2013 15:23:00 +0200 Subject: Add changelog gen dist-hook --- Makefile.am | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/Makefile.am b/Makefile.am index aac187f..19583c6 100644 --- a/Makefile.am +++ b/Makefile.am @@ -11,3 +11,18 @@ DISTCHECK_CONFIGURE_FLAGS = --enable-gtk-doc clean-local : rm -f *~ po/*~ + +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 --stat ) > 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 + -- cgit v1.2.1