shithub: aubio

Download patch

ref: 81ad5771b778ebe9a91fb770bbb7932b0b7b765b
parent: 376d5e97103f3715d0ef89df155c14ffe6cbec09
author: Paul Brossier <piem@piem.org>
date: Mon Apr 18 21:40:23 EDT 2016

Makefile: only expand waf if needed, use 'python waf' by default

--- a/Makefile
+++ b/Makefile
@@ -1,3 +1,4 @@
+WAFCMD=python waf
 all: build
 
 checkwaf:
@@ -5,8 +6,11 @@
 
 getwaf:
 	curl https://waf.io/waf-1.8.14 > waf
+	@chmod +x waf
+
+expandwaf:
 	@[ -d wafilb ] || rm -fr waflib
-	@chmod +x waf && ./waf --help > /dev/null
+	@$(WAFCMD) --help > /dev/null
 	@mv .waf*/waflib . && rm -fr .waf*
 	@sed '/^#==>$$/,$$d' waf > waf2 && mv waf2 waf
 	@chmod +x waf
@@ -22,10 +26,10 @@
 	cd python && ./setup.py clean
 
 clean:
-	./waf clean
+	$(WAFCMD) clean
 
 distcheck: build
-	./waf distcheck
+	$(WAFCMD) distcheck
 
 help:
-	./waf --help
+	$(WAFCMD) --help