From: Bruno Haible Date: Fri, 27 Dec 2024 09:39:27 +0000 (+0100) Subject: build: Fix "make dist" result when run in a VPATH build. X-Git-Tag: v0.24~80 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=863f3e2c607016f7e7c825e7f93c3d6f3b948a42;p=thirdparty%2Fgettext.git build: Fix "make dist" result when run in a VPATH build. Suggested by Simon Josefsson in . * Makefile.am (gen-ChangeLogs): Consider $(srcdir). --- diff --git a/Makefile.am b/Makefile.am index b83783f1e..2d38bfd67 100644 --- a/Makefile.am +++ b/Makefile.am @@ -123,7 +123,7 @@ distdir1: gen_start_date = 2015-10-13 .PHONY: gen-ChangeLogs gen-ChangeLogs: - $(AM_V_GEN)if test -d .git; then \ + $(AM_V_GEN)if test -d $(srcdir)/.git; then \ log_fix="$(srcdir)/build-aux/git-log-fix"; \ test -e "$$log_fix" \ && amend_git_log="--amend=$$log_fix" \ @@ -134,6 +134,7 @@ gen-ChangeLogs: && cldir="$(distdir)" \ || cldir="$(distdir)/$$d"; \ $(top_srcdir)/build-aux/gitlog-to-changelog \ + --srcdir=$(srcdir) \ $$amend_git_log --no-cluster --since=$(gen_start_date) -- "$$d" \ > "$$cldir/ChangeLog-t" \ && rm -f "$$cldir/ChangeLog" \