regularize the changelog rule, make it work for out-of-tree.

This commit is contained in:
Jeff Teunissen 2010-08-23 03:43:05 -04:00
parent 3c76768b01
commit 9bae615577

View file

@ -17,12 +17,12 @@ NOCONV_DIST= $(distdir)/include/win32/resources/icon1.ico
changelog: ChangeLog
ChangeLog: FORCE
@if test -d "$(srcdir)/.git"; then \
@if test -d "$(top_srcdir)/.git"; then \
echo "creating ChangeLog" && \
( cd "$(top_srcdir)" && \
echo 'This file is generated by Makefile; do not edit.'; \
echo; \
$(top_srcdir)/missing --run git log --abbrev-commit --stat --no-merges \
./missing --run git log --abbrev-commit --stat --no-merges \
) > $(top_builddir)/ChangeLog; \
else \
echo 'A git clone is required to generate ChangeLog' >&2; \