diff options
author | Alexander Larsson <alexl@redhat.com> | 2009-04-17 13:58:30 +0200 |
---|---|---|
committer | Alexander Larsson <alexl@redhat.com> | 2009-04-17 13:58:30 +0200 |
commit | 8acf8338c97387af3b93793760a3b1d64e752a2c (patch) | |
tree | 767e22453eedd822f060d2fdb24232faed6b7296 /Makefile.am | |
parent | 3f4a5c97a23acbca33836d14edb2b5c8798a6dc5 (diff) | |
download | nautilus-8acf8338c97387af3b93793760a3b1d64e752a2c.tar.gz |
Add makefile rules to generate ChangeLog
Diffstat (limited to 'Makefile.am')
-rw-r--r-- | Makefile.am | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/Makefile.am b/Makefile.am index 8d2b5bf8a..61d117cea 100644 --- a/Makefile.am +++ b/Makefile.am @@ -58,3 +58,24 @@ DISTCLEANFILES = \ intltool-update DISTCHECK_CONFIGURE_FLAGS = --disable-update-mimedb --enable-gtk-doc + +distclean-local: + if test $(srdcir) = .; then :; else \ + rm -f ChangeLog; \ + fi + +ChangeLog: + @echo Creating $@ + @if test -d "$(srcdir)/.git"; then \ + (GIT_DIR=$(top_srcdir)/.git ./missing --run git log NAUTILUS2_26_2.. --stat -M -C --name-status --date=short --no-color) | fmt --split-only > $@.tmp \ + && mv -f $@.tmp $@ \ + || ($(RM) $@.tmp; \ + echo Failed to generate ChangeLog, your ChangeLog may be outdated >&2; \ + (test -f $@ || echo git-log is required to generate this file >> $@)); \ + else \ + test -f $@ || \ + (echo A git checkout and git-log is required to generate ChangeLog >&2 && \ + echo A git checkout and git-log is required to generate this file >> $@); \ + fi + +.PHONY: ChangeLog |