From 7281b021814379b9c477b42bcf1f2215014d88ae Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Tue, 4 May 2010 10:08:43 +0200 Subject: build: allow use of target names as commands in waf This allows for the following types of commands: waf smbd/samba waf smbd/server.c waf ../lib/util/util_file.c waf ../lib/util/util_file_*.o this will be used as part of an updated minimal_includes.pl script --- source4/wscript | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'source4') diff --git a/source4/wscript b/source4/wscript index e5c8d23092..880069ed0e 100644 --- a/source4/wscript +++ b/source4/wscript @@ -8,7 +8,7 @@ VERSION='4.0.0-alpha13' import sys, os sys.path.insert(0, srcdir+"/buildtools/wafsamba") -import wafsamba, Options, samba_dist +import wafsamba, Options, samba_dist, Scripting samba_dist.DIST_DIRS('.') @@ -147,4 +147,13 @@ def distcheck(): d = Scripting.distcheck d(subdir='source4') +def wildcard_cmd(cmd): + '''called on a unknown command''' + from samba_wildcard import run_named_build_task + run_named_build_task(cmd) + +def main(): + from samba_wildcard import wildcard_main + wildcard_main(wildcard_cmd) +Scripting.main = main -- cgit