diff options
author | Vincent Untz <vuntz@gnome.org> | 2012-02-22 14:40:41 +0100 |
---|---|---|
committer | Vincent Untz <vuntz@gnome.org> | 2012-02-22 14:40:41 +0100 |
commit | 755001303a7b58bc869034c5ba98b66b394d817e (patch) | |
tree | 78dd2d5c8b99f262d68d33b60942ed90307e05e5 | |
parent | 2792eed31f4be15f135948d131b08920aa225e63 (diff) |
build: Generate ChangeLog on make dist
-rw-r--r-- | Makefile.am | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/Makefile.am b/Makefile.am index d95348e..fc507f6 100644 --- a/Makefile.am +++ b/Makefile.am @@ -18,4 +18,17 @@ MAINTAINERCLEANFILES = \ $(srcdir)/configure \ $(srcdir)/m4/*.m4 +CHANGELOG_GIT_RANGE = +dist-hook: + $(AM_V_GEN)if test -d "$(srcdir)/.git"; then \ + ( echo '# Generated by Makefile. Do not edit.'; echo; \ + GIT_DIR="$(top_srcdir)/.git" ./missing --run \ + git log $(CHANGELOG_GIT_RANGE) --no-color -M -C --name-status ) \ + > ChangeLog.tmp \ + && mv -f ChangeLog.tmp $(distdir)/ChangeLog \ + || ( rm -f ChangeLog.tmp ; echo Failed to generate ChangeLog >&2 ); \ + else \ + echo A git checkout is required to generate ChangeLog >&2; \ + fi + -include $(top_srcdir)/git.mk |