waf: allow for commands like "make bin/smbtorture"
authorAndrew Tridgell <tridge@samba.org>
Wed, 6 Oct 2010 12:12:44 +0000 (23:12 +1100)
committerAndrew Tridgell <tridge@samba.org>
Wed, 6 Oct 2010 12:18:04 +0000 (12:18 +0000)
I finally worked out the GNU make syntax for this

buildtools/scripts/Makefile.waf
source4/Makefile

index 1ccbf4ca793be035f13d295c06f53f443d08e86e..c07f8596144120cba8c45d78c3af834e9e536625 100644 (file)
@@ -56,6 +56,10 @@ etags:
 ctags:
        $(WAF) ctags
 
+bin/%:: FORCE
+       $(WAF) --targets=`basename $@`
+FORCE:
+
 configure: autogen-waf.sh BUILDTOOLS/scripts/configure.waf
        ./autogen-waf.sh
 
index e1e53cd6c444847997edad698f8d9f71136d4ef2..b41b38cf37e9a981e75bc2b5b7167f091b8d9254 100644 (file)
@@ -58,3 +58,8 @@ etags:
 
 ctags:
        $(WAF) ctags
+
+# this allows for things like "make bin/smbtorture"
+bin/%:: FORCE
+       $(WAF) --targets=`basename $@`
+FORCE: