mirror of
https://github.com/samba-team/samba.git
synced 2025-01-22 22:04:08 +03:00
build: make use on_results=True for some build rules
This makes sure we generate a checksum over the result. In practice it means we no longer recompile when a proto header is triggers a rebuild if it hasn't changed its md5sum. metze
This commit is contained in:
parent
17f4485722
commit
988bc0cdc2
@ -45,6 +45,7 @@ def SAMBA_ASN1(bld, name, source,
|
|||||||
t = bld(rule=asn1_rule,
|
t = bld(rule=asn1_rule,
|
||||||
ext_out = '.x',
|
ext_out = '.x',
|
||||||
before = 'cc',
|
before = 'cc',
|
||||||
|
on_results = True,
|
||||||
shell = True,
|
shell = True,
|
||||||
source = source,
|
source = source,
|
||||||
target = out_files,
|
target = out_files,
|
||||||
|
@ -11,6 +11,7 @@ def HEIMDAL_AUTOPROTO(bld, header, source, options=None, group='prototypes'):
|
|||||||
t = bld(rule='${PERL} -W ../heimdal/cf/make-proto.pl ${OPTIONS} ${TGT[0].abspath(env)} ${SRC}',
|
t = bld(rule='${PERL} -W ../heimdal/cf/make-proto.pl ${OPTIONS} ${TGT[0].abspath(env)} ${SRC}',
|
||||||
source=source,
|
source=source,
|
||||||
target=header,
|
target=header,
|
||||||
|
on_results=True,
|
||||||
ext_out='.c',
|
ext_out='.c',
|
||||||
before='cc')
|
before='cc')
|
||||||
t.env.OPTIONS = options
|
t.env.OPTIONS = options
|
||||||
@ -27,6 +28,7 @@ def SAMBA_AUTOPROTO(bld, header, source):
|
|||||||
bld(
|
bld(
|
||||||
source = source,
|
source = source,
|
||||||
target = header,
|
target = header,
|
||||||
|
on_results=True,
|
||||||
ext_out='.c',
|
ext_out='.c',
|
||||||
before ='cc',
|
before ='cc',
|
||||||
rule = '../script/mkproto.pl --srcdir=.. --builddir=. --public=/dev/null --private=${TGT} ${SRC}'
|
rule = '../script/mkproto.pl --srcdir=.. --builddir=. --public=/dev/null --private=${TGT} ${SRC}'
|
||||||
|
@ -19,6 +19,7 @@ def SAMBA_ERRTABLE(bld, name, source):
|
|||||||
t = bld(rule='${SRC[0].abspath(env)} . ${TGT[0].parent.abspath(env)} default/source4/heimdal_build/compile_et ${SRC[2].abspath(env)} ${TGT[0].bldpath(env)}',
|
t = bld(rule='${SRC[0].abspath(env)} . ${TGT[0].parent.abspath(env)} default/source4/heimdal_build/compile_et ${SRC[2].abspath(env)} ${TGT[0].bldpath(env)}',
|
||||||
ext_out = '.c',
|
ext_out = '.c',
|
||||||
before = 'cc',
|
before = 'cc',
|
||||||
|
on_results = True,
|
||||||
shell = True,
|
shell = True,
|
||||||
source = ['et_compile_wrapper.sh', 'compile_et', source],
|
source = ['et_compile_wrapper.sh', 'compile_et', source],
|
||||||
target = out_files,
|
target = out_files,
|
||||||
|
@ -11,6 +11,7 @@ def SAMBA_MKVERSION(bld, target):
|
|||||||
source= [ "script/mkversion.sh", 'VERSION' ],
|
source= [ "script/mkversion.sh", 'VERSION' ],
|
||||||
target=target,
|
target=target,
|
||||||
shell=True,
|
shell=True,
|
||||||
|
on_results=True,
|
||||||
before="cc")
|
before="cc")
|
||||||
# force this rule to be constructed now
|
# force this rule to be constructed now
|
||||||
t.post()
|
t.post()
|
||||||
|
@ -57,6 +57,7 @@ def SAMBA_PIDL(bld, pname, source,
|
|||||||
t = bld(rule='cd .. && ${PIDL} ${OPTIONS} --outputdir ${OUTPUTDIR} -- ${SRC[0].abspath(env)}',
|
t = bld(rule='cd .. && ${PIDL} ${OPTIONS} --outputdir ${OUTPUTDIR} -- ${SRC[0].abspath(env)}',
|
||||||
ext_out = '.c',
|
ext_out = '.c',
|
||||||
before = 'cc',
|
before = 'cc',
|
||||||
|
on_results = True,
|
||||||
shell = True,
|
shell = True,
|
||||||
source = source,
|
source = source,
|
||||||
target = out_files,
|
target = out_files,
|
||||||
@ -124,6 +125,7 @@ def SAMBA_PIDL_TABLES(bld, name, target):
|
|||||||
rule = '${SRC} --output ${TGT} | sed "s|default/||" > ${TGT}',
|
rule = '${SRC} --output ${TGT} | sed "s|default/||" > ${TGT}',
|
||||||
ext_out = '.c',
|
ext_out = '.c',
|
||||||
before = 'cc',
|
before = 'cc',
|
||||||
|
on_results = True,
|
||||||
shell = True,
|
shell = True,
|
||||||
source = '../../librpc/tables.pl',
|
source = '../../librpc/tables.pl',
|
||||||
target = target,
|
target = target,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user