Commit 17b1dc3a authored by Vincent Untz's avatar Vincent Untz

build: Generate ChangeLog on make dist

parent ac467f54
......@@ -31,5 +31,18 @@ MAINTAINERCLEANFILES = \
$(srcdir)/m4/ltversion.m4 \
$(srcdir)/m4/lt~obsolete.m4
CHANGELOG_GIT_RANGE = GNOME_MENUS_2_26_1..
dist-hook:
$(AM_V_GEN)if test -d "$(srcdir)/.git"; then \
( echo '# Generated by Makefile. Do not edit.'; echo; \
GIT_DIR="$(top_srcdir)/.git" ./missing --run \
git log $(CHANGELOG_GIT_RANGE) --no-color -M -C --name-status ) \
> ChangeLog.tmp \
&& mv -f ChangeLog.tmp $(distdir)/ChangeLog \
|| ( rm -f ChangeLog.tmp ; echo Failed to generate ChangeLog >&2 ); \
else \
echo A git checkout is required to generate ChangeLog >&2; \
fi
GITIGNOREFILES = $(PACKAGE)-\*.tar.{gz,bz2,xz}
-include $(top_srcdir)/git.mk
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