The "make dist" target depends upon a phony target "generate-changelog" which
generates the ChangeLog file. Unfortunately, this was failing if the current
directory was not the source directory. Worse, this failure was not detected,
but would erroneously generate an empty ChangeLog.
This change fixes both these problems.
generate-changelog:
if test -d $(top_srcdir)/.git; then \
- $(top_srcdir)/build-aux/gitlog-to-changelog --since=2008-07-27 \
- > $(distdir)/cl-t; \
+ $(top_srcdir)/build-aux/gitlog-to-changelog --since=2008-07-27 --srcdir=$(top_srcdir) \
+ > $(distdir)/cl-t || exit 1; \
rm -f $(distdir)/ChangeLog; \
mv $(distdir)/cl-t $(distdir)/ChangeLog; \
fi