diff options
author | Wojtek Kosior <koszko@koszko.org> | 2023-12-22 22:12:10 +0100 |
---|---|---|
committer | W. Kosior <koszko@koszko.org> | 2025-03-21 13:59:29 +0100 |
commit | 8ffe3077224a747463ffacb47707fa793db6d5ca (patch) | |
tree | 59b95177d8880c2a22806eeed74ec3b2f037610d | |
parent | e5b2661579088cee011540a5d2f303e451243aaa (diff) | |
download | guix-8ffe3077224a747463ffacb47707fa793db6d5ca.tar.gz guix-8ffe3077224a747463ffacb47707fa793db6d5ca.zip |
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
-rw-r--r-- | Makefile.am | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/Makefile.am b/Makefile.am index c668b96a37..bba2181e26 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1022,16 +1022,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; \ |