diff options
author | Andrew Tridgell <tridge@samba.org> | 2011-10-20 14:57:13 +1100 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2011-10-20 07:24:02 +0200 |
commit | dd64f99fd17c1cb5aeefda91618111c6702832a7 (patch) | |
tree | c36c46b36de2725c23ca8cbe63105eaf362c4868 /buildtools/wafsamba | |
parent | ab50165a0235401d7920e67503c211028f55012d (diff) | |
download | samba-dd64f99fd17c1cb5aeefda91618111c6702832a7.tar.gz samba-dd64f99fd17c1cb5aeefda91618111c6702832a7.tar.bz2 samba-dd64f99fd17c1cb5aeefda91618111c6702832a7.zip |
build: explain the passing of make options to waf
add a comment explaining how we pass make command line options into
waf
Autobuild-User: Andrew Tridgell <tridge@samba.org>
Autobuild-Date: Thu Oct 20 07:24:02 CEST 2011 on sn-devel-104
Diffstat (limited to 'buildtools/wafsamba')
-rw-r--r-- | buildtools/wafsamba/samba_utils.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/buildtools/wafsamba/samba_utils.py b/buildtools/wafsamba/samba_utils.py index 3adf533b0e..5e16a5d470 100644 --- a/buildtools/wafsamba/samba_utils.py +++ b/buildtools/wafsamba/samba_utils.py @@ -487,6 +487,13 @@ def CHECK_MAKEFLAGS(bld): if Logs.verbose > 2: Logs.zones = ['*'] elif opt[0].isupper() and opt.find('=') != -1: + # this allows us to set waf options on the make command line + # for example, if you do "make FOO=blah", then we set the + # option 'FOO' in Options.options, to blah. If you look in wafsamba/wscript + # you will see that the command line accessible options have their dest= + # set to uppercase, to allow for passing of options from make in this way + # this is also how "make test TESTS=testpattern" works, and + # "make VERBOSE=1" as well as things like "make SYMBOLCHECK=1" loc = opt.find('=') setattr(Options.options, opt[0:loc], opt[loc+1:]) elif opt[0] != '-': |