1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-10 01:18:15 +03:00

build: added a reconfigure target

this is meant to be used by the s3 build, to allow jelmers work on
smbtorture4 in s3 to avoid re-running configure unless its needed
This commit is contained in:
Andrew Tridgell 2010-05-06 14:51:28 +02:00
parent 049416c285
commit c61f4dcc0f
3 changed files with 17 additions and 0 deletions

View File

@ -29,6 +29,9 @@ clean:
distclean:
$(WAF) distclean
reconfigure: configure
$(WAF) reconfigure
# some compatibility make targets
everything: all

View File

@ -507,3 +507,13 @@ def load_file(filename):
except:
return None
return r
def reconfigure(ctx):
'''rerun configure if necessary'''
import Configure, samba_wildcard, Scripting
if not os.path.exists(".lock-wscript"):
raise Utils.WafError('configure has not been run')
bld = samba_wildcard.fake_build_environment()
Configure.autoconfig = True
Scripting.check_configured(bld)

View File

@ -157,3 +157,7 @@ def main():
wildcard_main(wildcard_cmd)
Scripting.main = main
def reconfigure(ctx):
'''reconfigure if config scripts have changed'''
import samba_utils
samba_utils.reconfigure(ctx)