diff --git a/Makefile.am b/Makefile.am index b3bda88ea..0e2246816 100644 --- a/Makefile.am +++ b/Makefile.am @@ -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; \