PREV_RELEASE=git-import changelog: @if test -d "$(srcdir)/.git"; \ then \ to=""; \ from="$(PREV_RELEASE)"; \ echo Creating ChangeLog && \ ( cd "$(top_srcdir)" && \ echo '# Generated by configure. Do no edit.'; echo; \ $(top_srcdir)/missing --run perl $(top_srcdir)/build/gen-changelog.pl $$from..$$to ) > ChangeLog.tmp \ && mv -f ChangeLog.tmp $(top_distdir)/ChangeLog \ || ( rm -f ChangeLog.tmp ; \ echo Failed to generate ChangeLog >&2 ); \ else \ echo A git checkout is required to generate a ChangeLog >&2; \ fi dist-hook: changelog