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:
parent
049416c285
commit
c61f4dcc0f
@ -29,6 +29,9 @@ clean:
|
||||
distclean:
|
||||
$(WAF) distclean
|
||||
|
||||
reconfigure: configure
|
||||
$(WAF) reconfigure
|
||||
|
||||
# some compatibility make targets
|
||||
everything: all
|
||||
|
||||
|
@ -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)
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user