Commit d140ff6a authored by David Zeuthen's avatar David Zeuthen

generate and dist ChangeLog

parent e2a465d0
......@@ -9,5 +9,27 @@ DISTCLEANFILES = libpolkit.pc
EXTRA_DIST = HACKING libpolkit.pc.in mkinstalldirs
# Creating ChangeLog from git log (taken from cairo/Makefile.am):
ChangeLog: $(srcdir)/ChangeLog
$(srcdir)/ChangeLog:
@if test -d "$(srcdir)/.git"; then \
(cd "$(srcdir)" && \
./missing --run git-log --stat) | fmt --split-only > $@.tmp \
&& mv -f $@.tmp $@ \
|| ($(RM) $@.tmp; \
echo Failed to generate ChangeLog, your ChangeLog may be outdated >&2; \
(test -f $@ || echo git-log is required to generate this file >> $@)); \
else \
test -f $@ || \
(echo A git checkout and git-log is required to generate ChangeLog >&2 && \
echo A git checkout and git-log is required to generate this file >> $@); \
fi
.PHONY: ChangeLog $(srcdir)/ChangeLog
EXTRA_DIST = HACKING libpolkit.pc.in mkinstalldirs ChangeLog
clean-local :
rm -f *~
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