pyldb: avoid segfault when adding an element with no name
[sfrench/samba-autobuild/.git] / lib / replace / Makefile
index 5b8220c6cb7fc476f57dc9dfb8eac50417343a94..a123a37b937213be67c71fe65edb97123d6ed8e1 100644 (file)
@@ -1,6 +1,7 @@
 # simple makefile wrapper to run waf
 
-WAF=WAF_MAKE=1 PATH=buildtools/bin:../../buildtools/bin:$$PATH waf
+WAF_BINARY=$(PYTHON) ../../buildtools/bin/waf
+WAF=PYTHONHASHSEED=1 WAF_MAKE=1 $(WAF_BINARY)
 
 all:
        $(WAF) build
@@ -21,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