summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2022-09-09 16:54:11 -0500
committerPaul Eggert <eggert@cs.ucla.edu>2022-09-09 16:57:10 -0500
commit31f673434ee402258b45e958c88acc8725d82b1a (patch)
treef50878304b36be74dad525ac3f628cc69b768d31
parent8b5e2016c7ed2d67f31b03a3d2e361858ff5299b (diff)
downloadautoconf-31f673434ee402258b45e958c88acc8725d82b1a.tar.gz
Port to GNU make 4.4
* cfg.mk (PATH): Assign eagerly, and simplify shell use, avoiding use of the shell entirely if PWD is set, as it should be. Problem reported by Sergei Trofimovich in: https://lists.gnu.org/r/autoconf-patches/2022-09/msg00007.html
-rw-r--r--cfg.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/cfg.mk b/cfg.mk
index 7e515130..82e896ed 100644
--- a/cfg.mk
+++ b/cfg.mk
@@ -18,7 +18,7 @@
# This file is '-include'd into GNUmakefile.
# Build with our own versions of these tools, when possible.
-export PATH = $(shell echo "`pwd`/tests:$$PATH")
+export PATH := $(or $(PWD),$(shell pwd))/tests:$(PATH)
# Remove the autoreconf-provided INSTALL, so that we regenerate it.
_autoreconf = autoreconf -i -v && rm -f INSTALL