diff options
author | Andrew Tridgell <tridge@samba.org> | 2010-05-04 10:08:43 +0200 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2010-05-04 11:45:43 +0200 |
commit | 7281b021814379b9c477b42bcf1f2215014d88ae (patch) | |
tree | 721906ad3f0952d4b8599446dd605b3001f6586c /source4 | |
parent | 727a1acd917baa1d8a5490569782ca41b7136215 (diff) | |
download | samba-7281b021814379b9c477b42bcf1f2215014d88ae.tar.gz samba-7281b021814379b9c477b42bcf1f2215014d88ae.tar.bz2 samba-7281b021814379b9c477b42bcf1f2215014d88ae.zip |
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
Diffstat (limited to 'source4')
-rw-r--r-- | source4/wscript | 11 |
1 files changed, 10 insertions, 1 deletions
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 |