diff options
author | Wojtek Kosior <koszko@koszko.org> | 2023-12-22 22:12:10 +0100 |
---|---|---|
committer | W. Kosior <koszko@koszko.org> | 2024-09-04 21:02:08 +0200 |
commit | 505258172e7bc2b67469b395cb46e38ef2f3069e (patch) | |
tree | 09de989c0687ce605317b39a7b13522d651874aa | |
parent | 5b9b23d2cdc6b18569887174c060e79c16efc2e1 (diff) | |
download | guix-505258172e7bc2b67469b395cb46e38ef2f3069e.tar.gz guix-505258172e7bc2b67469b395cb46e38ef2f3069e.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 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; \ |