From 615ff70572c027864f3766fe0acdadd9e3f00f9c Mon Sep 17 00:00:00 2001 From: raveit65 Date: Wed, 6 Apr 2016 17:21:22 +0200 Subject: Add Changelog generation --- Makefile.am | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'Makefile.am') diff --git a/Makefile.am b/Makefile.am index 8e14fc3c..18718fba 100644 --- a/Makefile.am +++ b/Makefile.am @@ -36,9 +36,12 @@ DISTCHECK_CONFIGURE_FLAGS = --disable-update-mimedb --disable-icon-update --enab ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS} -distclean-local: - if test "$(srcdir)" = "."; then :; else \ - rm -f ChangeLog; \ +# Build ChangeLog from GIT history +ChangeLog: + $(AM_V_GEN) if test -d $(top_srcdir)/.git; then \ + GIT_DIR="$(top_srcdir)/.git" git log --stat > $@; \ fi +dist: ChangeLog + .PHONY: ChangeLog -- cgit v1.2.1