pyldb: avoid segfault when adding an element with no name
[sfrench/samba-autobuild/.git] / lib / replace / Makefile
index 2cc28191038e0f282217574416d86d17cc95884d..a123a37b937213be67c71fe65edb97123d6ed8e1 100644 (file)
@@ -1,8 +1,7 @@
 # simple makefile wrapper to run waf
 
-WAFPATH:=$(shell PATH=../../buildtools/bin:buildtools/bin:$(PATH) which waf)
-
-WAF=WAF_MAKE=1 $(WAFPATH)
+WAF_BINARY=$(PYTHON) ../../buildtools/bin/waf
+WAF=PYTHONHASHSEED=1 WAF_MAKE=1 $(WAF_BINARY)
 
 all:
        $(WAF) build
@@ -23,10 +22,12 @@ quicktest:
        $(WAF) test --quick $(TEST_OPTIONS)
 
 dist:
-       $(WAF) dist
+       touch .tmplock
+       WAFLOCK=.tmplock $(WAF) dist
 
 distcheck:
-       $(WAF) distcheck
+       touch .tmplock
+       WAFLOCK=.tmplock $(WAF) distcheck
 
 clean:
        $(WAF) clean
@@ -61,9 +62,3 @@ ctags:
 bin/%:: FORCE
        $(WAF) --targets=`basename $@`
 FORCE:
-
-configure: autogen-waf.sh ../../buildtools/scripts/configure.waf
-       ./autogen-waf.sh
-
-Makefile: autogen-waf.sh configure ../../buildtools/scripts/Makefile.waf
-       ./autogen-waf.sh