PY3: switch current build to use python3
[sfrench/samba-autobuild/.git] / lib / replace / Makefile
index 364990153e5374aa238073425f896879303cfad3..923605f9a134e6070616fdd1e0f82821487b4887 100644 (file)
@@ -1,6 +1,8 @@
 # simple makefile wrapper to run waf
 
-WAF=WAF_MAKE=1 PATH=buildtools/bin:../../buildtools/bin:$$PATH waf
+PYTHON?=python3
+WAF_BINARY=$(PYTHON) ../../buildtools/bin/waf
+WAF=WAF_MAKE=1 $(WAF_BINARY)
 
 all:
        $(WAF) build