diff options
author | raveit65 <[email protected]> | 2017-02-05 16:12:29 +0100 |
---|---|---|
committer | raveit65 <[email protected]> | 2017-02-05 16:12:29 +0100 |
commit | c4fdaa6a077fadad738344344252c4fbdff022f9 (patch) | |
tree | 8c9cbdf1788cc395980d2746d4af2c7c5a0e7cf4 /Makefile.am | |
parent | 05fcd4f0b9d0daec705bd1d2e1769f7cb524758d (diff) | |
download | mate-calc-c4fdaa6a077fadad738344344252c4fbdff022f9.tar.bz2 mate-calc-c4fdaa6a077fadad738344344252c4fbdff022f9.tar.xz |
fix changelog generation
Diffstat (limited to 'Makefile.am')
-rw-r--r-- | Makefile.am | 21 |
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 > $@; \ fi + +dist: ChangeLog + +.PHONY: ChangeLog |