summaryrefslogtreecommitdiff
path: root/Makefile.am
diff options
context:
space:
mode:
authorraveit65 <[email protected]>2016-04-07 11:53:40 +0200
committerraveit65 <[email protected]>2016-04-07 11:53:40 +0200
commit183ce33b8d0a1c3a44477ada71297aebe2730766 (patch)
treea976cf7b439809754fd0bcd92674788bafa054b1 /Makefile.am
parentc6a48c57502f1bc45038bbbea34f9c957bdc5ec7 (diff)
downloadmate-sensors-applet-183ce33b8d0a1c3a44477ada71297aebe2730766.tar.bz2
mate-sensors-applet-183ce33b8d0a1c3a44477ada71297aebe2730766.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 9668622..3776231 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -49,16 +49,13 @@ DISTCLEANFILES = intltool-extract \
intltool-merge \
intltool-update
-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 > $@; \
fi
+
+dist: ChangeLog
+
+.PHONY: ChangeLog
+