From 505258172e7bc2b67469b395cb46e38ef2f3069e Mon Sep 17 00:00:00 2001 From: Wojtek Kosior Date: Fri, 22 Dec 2023 22:12:10 +0100 Subject: build: Fix `make dist'-specific targets in VPATH builds. * Makefile.am (gen-ChangeLog): Look for .git in `$(top_srcdir)'. (gen-AUTHORS): Look for .git in `$(top_srcdir)'. Change-Id: Ib6d78f08f8791d2f8e1758614d21c41f04a39b0a --- Makefile.am | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/Makefile.am b/Makefile.am index e9801283f8..53d3f9b542 100644 --- a/Makefile.am +++ b/Makefile.am @@ -999,16 +999,19 @@ gen-tarball-version: echo $(SOURCE_DATE_EPOCH) > $(distdir)/.tarball-timestamp gen-ChangeLog: - $(AM_V_GEN)set -e; \ + $(AM_V_GEN)if test -d $(top_srcdir)/.git; then \ + set -e; \ export LC_ALL=en_US.UTF-8; \ export TZ=UTC0; \ $(top_srcdir)/build-aux/gitlog-to-changelog \ > $(distdir)/ChangeLog.tmp; \ rm -f $(distdir)/ChangeLog; \ - mv $(distdir)/ChangeLog.tmp $(distdir)/ChangeLog; + mv $(distdir)/ChangeLog.tmp $(distdir)/ChangeLog; \ + fi gen-AUTHORS: - $(AM_V_GEN)set -e; \ + $(AM_V_GEN)if test -d $(top_srcdir)/.git; then \ + set -e; \ rm -f "$(distdir)/AUTHORS"; \ export LC_ALL=en_US.UTF-8; \ export TZ=UTC0; \ -- cgit v1.2.3