Commit df6829e6 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont Committed by Rafaël Carré

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.
(cherry picked from commit 16402c26)
parent fe2b7bd8
...@@ -50,11 +50,16 @@ EXTRA_DIST = \ ...@@ -50,11 +50,16 @@ EXTRA_DIST = \
DISTCLEANFILES = $(CHANGELOGS) DISTCLEANFILES = $(CHANGELOGS)
$(CHANGELOGS): Makefile.am $(CHANGELOGS): Makefile.am
y="$$(echo "$@" | sed -e 's,ChangeLog-,,')" ; \ if test -d "$(top_srcdir)/.git"; then \
git --git-dir=$(top_srcdir)/.git log\ y="$$(echo "$@" | sed -e 's,ChangeLog-,,')" ; \
--since="$$y-01-01" \ git --git-dir="$(top_srcdir)/.git" log \
--until="$$y-12-31 23:00:00 -0100" \ --since="$$y-01-01" \
> "$@" --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