From: RĂ©mi Denis-Courmont Date: Mon, 31 Mar 2008 16:40:48 +0000 (+0300) Subject: Don't attempt to create ChangeLogs if not in a git-tree. X-Git-Tag: 0.9.0-test0~1648 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=16402c26dec1c83fc096f5c083c70c785139a720;p=vlc 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. --- 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)