summaryrefslogtreecommitdiff
path: root/Makefile.am
diff options
context:
space:
mode:
authorraveit65 <[email protected]>2017-02-05 16:12:29 +0100
committerraveit65 <[email protected]>2017-02-05 16:12:29 +0100
commitc4fdaa6a077fadad738344344252c4fbdff022f9 (patch)
tree8c9cbdf1788cc395980d2746d4af2c7c5a0e7cf4 /Makefile.am
parent05fcd4f0b9d0daec705bd1d2e1769f7cb524758d (diff)
downloadmate-calc-c4fdaa6a077fadad738344344252c4fbdff022f9.tar.bz2
mate-calc-c4fdaa6a077fadad738344344252c4fbdff022f9.tar.xz
fix changelog generation
Diffstat (limited to 'Makefile.am')
-rw-r--r--Makefile.am21
1 files changed, 9 insertions, 12 deletions
diff --git a/Makefile.am b/Makefile.am
index d4604f4..08ceaea 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -18,16 +18,13 @@ DISTCLEANFILES = \
EXTRA_DIST = \
autogen.sh
-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; \
+
+# Build ChangeLog from GIT history
+ChangeLog:
+ $(AM_V_GEN) if test -d $(top_srcdir)/.git; then \
+ GIT_DIR="$(top_srcdir)/.git" git log --stat > [email protected]; \
fi
+
+dist: ChangeLog
+
+.PHONY: ChangeLog