summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/replace/Makefile4
-rw-r--r--lib/talloc/Makefile4
-rw-r--r--lib/tevent/Makefile4
-rw-r--r--source4/lib/ldb/Makefile4
4 files changed, 4 insertions, 12 deletions
diff --git a/lib/replace/Makefile b/lib/replace/Makefile
index 3082459add..5b8220c6cb 100644
--- a/lib/replace/Makefile
+++ b/lib/replace/Makefile
@@ -1,8 +1,6 @@
# simple makefile wrapper to run waf
-WAFPATH:=$(shell PATH=../../buildtools/bin:buildtools/bin:$(PATH) which waf)
-
-WAF=WAF_MAKE=1 $(WAFPATH)
+WAF=WAF_MAKE=1 PATH=buildtools/bin:../../buildtools/bin:$$PATH waf
all:
$(WAF) build
diff --git a/lib/talloc/Makefile b/lib/talloc/Makefile
index 3082459add..5b8220c6cb 100644
--- a/lib/talloc/Makefile
+++ b/lib/talloc/Makefile
@@ -1,8 +1,6 @@
# simple makefile wrapper to run waf
-WAFPATH:=$(shell PATH=../../buildtools/bin:buildtools/bin:$(PATH) which waf)
-
-WAF=WAF_MAKE=1 $(WAFPATH)
+WAF=WAF_MAKE=1 PATH=buildtools/bin:../../buildtools/bin:$$PATH waf
all:
$(WAF) build
diff --git a/lib/tevent/Makefile b/lib/tevent/Makefile
index 3f188a955f..f178363dbc 100644
--- a/lib/tevent/Makefile
+++ b/lib/tevent/Makefile
@@ -1,8 +1,6 @@
# simple makefile wrapper to run waf
-WAFPATH:=$(shell PATH=../../buildtools/bin:buildtools/bin:$(PATH) which waf)
-
-WAF=WAF_MAKE=1 $(WAFPATH)
+WAF=WAF_MAKE=1 PATH=buildtools/bin:../../buildtools/bin:$$PATH waf
all:
$(WAF) build
diff --git a/source4/lib/ldb/Makefile b/source4/lib/ldb/Makefile
index 3d0d8e4938..da05bcfb6d 100644
--- a/source4/lib/ldb/Makefile
+++ b/source4/lib/ldb/Makefile
@@ -1,8 +1,6 @@
# simple makefile wrapper to run waf
-WAFPATH:=$(shell PATH=../../../buildtools/bin:buildtools/bin:$(PATH) which waf)
-
-WAF=WAF_MAKE=1 $(WAFPATH)
+WAF=WAF_MAKE=1 PATH=buildtools/bin:../../../buildtools/bin:$$PATH waf
all:
$(WAF) build