Commit 867015a9 authored by Nirbheek Chauhan's avatar Nirbheek Chauhan Committed by Luis de Bethencourt

build: generate ChangeLog from git during make dist

dist-hook stolen shamelessly from https://live.gnome.org/Git/ChangeLog
parent eb849436
......@@ -7,7 +7,7 @@ DIST_SUBDIRS = $(SUBDIRS)
EXTRA_DIST = \
ChangeLog autogen.sh \
AUTHORS COPYING NEWS README
AUTHORS COPYING NEWS README ToDo
pkgconfigdir = $(libdir)pkgconfig
......@@ -16,3 +16,17 @@ ACLOCAL_AMFLAGS =
DISTCLEANFILES =
all-local:
dist-hook:
@if test -d "$(srcdir)/.git"; \
then \
echo Creating ChangeLog && \
( cd "$(top_srcdir)" && \
echo '# Generated by Makefile. Do not edit.'; echo; \
git log --stat ) > ChangeLog.tmp \
&& mv -f ChangeLog.tmp $(distdir)/ChangeLog \
|| ( rm -f ChangeLog.tmp ; \
echo Failed to generate ChangeLog >&2 ); \
else \
echo A git clone is required to generate a ChangeLog >&2; \
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