diff options
author | Stefano Karapetsas <[email protected]> | 2014-02-14 19:07:35 +0100 |
---|---|---|
committer | Stefano Karapetsas <[email protected]> | 2014-02-14 19:07:35 +0100 |
commit | eb9ce881f02a121bafcd47d4c0ad370bf8107b6b (patch) | |
tree | 58969d0dd22eb5e55d50696001f68d5687ed74bb /Makefile.am | |
parent | 9f7e83da96d90ab4137939bfcbb9494cc71862e7 (diff) | |
download | mate-desktop-eb9ce881f02a121bafcd47d4c0ad370bf8107b6b.tar.bz2 mate-desktop-eb9ce881f02a121bafcd47d4c0ad370bf8107b6b.tar.xz |
Add dist-hook for changelogmate-desktop-1.7.90
Diffstat (limited to 'Makefile.am')
-rw-r--r-- | Makefile.am | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/Makefile.am b/Makefile.am index 4405bd3..e98d497 100644 --- a/Makefile.am +++ b/Makefile.am @@ -47,4 +47,18 @@ MAINTAINERCLEANFILES = \ $(srcdir)/m4/gtk-doc.m4 \ $(srcdir)/m4/intltool.m4 +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; \ + fi + -include $(top_srcdir)/git.mk |