From 16402c26dec1c83fc096f5c083c70c785139a720 Mon Sep 17 00:00:00 2001 From: =?utf8?q?R=C3=A9mi=20Denis-Courmont?= Date: Mon, 31 Mar 2008 19:40:48 +0300 Subject: [PATCH] Don't attempt to create ChangeLogs if not in a git-tree. There is no need to copy the files in that case thanks to VPATH. That assumes you are using a source tarball then - if not, you are screwed anywhow. --- doc/Makefile.am | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/doc/Makefile.am b/doc/Makefile.am index 6c1989e3ec..91b53372e9 100644 --- a/doc/Makefile.am +++ b/doc/Makefile.am @@ -50,11 +50,16 @@ EXTRA_DIST = \ DISTCLEANFILES = $(CHANGELOGS) $(CHANGELOGS): Makefile.am - y="$$(echo "$@" | sed -e 's,ChangeLog-,,')" ; \ - git --git-dir=$(top_srcdir)/.git log\ - --since="$$y-01-01" \ - --until="$$y-12-31 23:00:00 -0100" \ - > "$@" + if test -d "$(top_srcdir)/.git"; then \ + y="$$(echo "$@" | sed -e 's,ChangeLog-,,')" ; \ + git --git-dir="$(top_srcdir)/.git" log \ + --since="$$y-01-01" \ + --until="$$y-12-31 23:00:00 -0100" \ + > "$@" ; \ + fi # This one needs to be rebuilt all the time :) .PHONY: ChangeLog-2008 +# +#distclean-hook: +# test "$(srcdir)" = "$(builddir)" || rm -f -- $(CHANGELOGS) -- 2.39.2