Commit 16402c26 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

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.
parent 0a9a406d
...@@ -50,11 +50,16 @@ EXTRA_DIST = \ ...@@ -50,11 +50,16 @@ EXTRA_DIST = \
DISTCLEANFILES = $(CHANGELOGS) DISTCLEANFILES = $(CHANGELOGS)
$(CHANGELOGS): Makefile.am $(CHANGELOGS): Makefile.am
if test -d "$(top_srcdir)/.git"; then \
y="$$(echo "$@" | sed -e 's,ChangeLog-,,')" ; \ y="$$(echo "$@" | sed -e 's,ChangeLog-,,')" ; \
git --git-dir=$(top_srcdir)/.git log\ git --git-dir="$(top_srcdir)/.git" log \
--since="$$y-01-01" \ --since="$$y-01-01" \
--until="$$y-12-31 23:00:00 -0100" \ --until="$$y-12-31 23:00:00 -0100" \
> "$@" > "$@" ; \
fi
# This one needs to be rebuilt all the time :) # This one needs to be rebuilt all the time :)
.PHONY: ChangeLog-2008 .PHONY: ChangeLog-2008
#
#distclean-hook:
# test "$(srcdir)" = "$(builddir)" || rm -f -- $(CHANGELOGS)
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment