Commit 01f146c2 authored by Guillem Jover's avatar Guillem Jover

build: Handle the ChangeLog as a distributed-only file

The ChangeLog file is distributed, and cannot be regenerated outside
of the git repository, so do not remove it in DISTCLEANFILES, and move
the generation code into dist-hook, which also avoids unnecessary
computation during normal builds.
parent 509841b5
......@@ -9,11 +9,8 @@ EXTRA_DIST = \
get-version \
$(nil)
DISTCLEANFILES = ChangeLog
.PHONY: ChangeLog
ChangeLog:
git log --stat -C >$@
dist-hook:
echo $(VERSION) >$(distdir)/.dist-version
if [ -d .git ]; then \
git log --stat -C >$(distdir)/ChangeLog; \
fi
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