From 7dcecbd0773b2c342712aa207c941d31f1da7b4a Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Wed, 6 Oct 2010 23:12:44 +1100 Subject: waf: allow for commands like "make bin/smbtorture" I finally worked out the GNU make syntax for this --- buildtools/scripts/Makefile.waf | 4 ++++ source4/Makefile | 5 +++++ 2 files changed, 9 insertions(+) diff --git a/buildtools/scripts/Makefile.waf b/buildtools/scripts/Makefile.waf index 1ccbf4ca79..c07f859614 100644 --- a/buildtools/scripts/Makefile.waf +++ b/buildtools/scripts/Makefile.waf @@ -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 diff --git a/source4/Makefile b/source4/Makefile index e1e53cd6c4..b41b38cf37 100644 --- a/source4/Makefile +++ b/source4/Makefile @@ -58,3 +58,8 @@ etags: ctags: $(WAF) ctags + +# this allows for things like "make bin/smbtorture" +bin/%:: FORCE + $(WAF) --targets=`basename $@` +FORCE: -- cgit