diff options
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | Makefile.am | 18 |
2 files changed, 19 insertions, 0 deletions
@@ -5,6 +5,7 @@ .libs /auto /autom4te.cache +ChangeLog Makefile.in Makefile aclocal.m4 diff --git a/Makefile.am b/Makefile.am index 1f08a70..4239395 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1,3 +1,21 @@ SUBDIRS = lib src test dist_noinst_SCRIPTS = abs2rel.sh + +# ChangeLog rules +EXTRA_DIST = ChangeLog +MAINTAINERCLEANFILES = ChangeLog +.PHONY: ChangeLog + +ChangeLog: + @if test ! -d $(top_srcdir)/.git; then \ + if test $(srcdir) != $(builddir) && \ + test -f $(top_srcdir)/ChangeLog; then \ + cp $(srcdir)/ChangeLog $@; \ + else \ + touch ChangeLog; \ + fi; \ + exit 0; \ + fi; \ + echo git --git-dir=$(top_srcdir)/.git log '>' $@; \ + git --git-dir=$(top_srcdir)/.git log > $@ || touch ChangeLog |