build: make use on_results=True for some build rules
authorStefan Metzmacher <metze@sernet.private>
Wed, 24 Mar 2010 09:54:31 +0000 (10:54 +0100)
committerAndrew Tridgell <tridge@samba.org>
Tue, 6 Apr 2010 10:27:05 +0000 (20:27 +1000)
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

buildtools/wafsamba/samba_asn1.py
buildtools/wafsamba/samba_autoproto.py
buildtools/wafsamba/samba_errtable.py
buildtools/wafsamba/samba_patterns.py
buildtools/wafsamba/samba_pidl.py

index 4d8c74f3f9689f57a562f86ec386006099deebb1..63000ebd5b608b6832109d96fd80c482b8368503 100644 (file)
@@ -45,6 +45,7 @@ def SAMBA_ASN1(bld, name, source,
     t = bld(rule=asn1_rule,
             ext_out = '.x',
             before = 'cc',
+            on_results = True,
             shell = True,
             source = source,
             target = out_files,
index a2a103d1cfe15c72f227d917b0c3e314c63724c9..7e003cbf3f20cfb302609f190bc6f867accf024e 100644 (file)
@@ -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}',
             source=source,
             target=header,
+            on_results=True,
             ext_out='.c',
             before='cc')
     t.env.OPTIONS = options
@@ -27,6 +28,7 @@ def SAMBA_AUTOPROTO(bld, header, source):
     bld(
         source = source,
         target = header,
+        on_results=True,
         ext_out='.c',
         before ='cc',
         rule = '../script/mkproto.pl --srcdir=.. --builddir=. --public=/dev/null --private=${TGT} ${SRC}'
index d324a3541b10e4d721d4dd405772903e9cf2a114..8f0980220f52e589829ac15cd31e8b476c480a45 100644 (file)
@@ -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)}',
             ext_out = '.c',
             before  = 'cc',
+            on_results = True,
             shell   = True,
             source  = ['et_compile_wrapper.sh', 'compile_et', source],
             target  = out_files,
index fa1b70de7a71068d806c28180bd5b2fc7424f179..ccd82159a97197efe9822a3b4ee081b0e67cac95 100644 (file)
@@ -11,6 +11,7 @@ def SAMBA_MKVERSION(bld, target):
             source= [ "script/mkversion.sh", 'VERSION' ],
             target=target,
             shell=True,
+            on_results=True,
             before="cc")
     # force this rule to be constructed now
     t.post()
index 6e47686105f45bf92ed2878df8934d261a2ed990..a56a6743de932e6a489f3b4bc125ce32b290369e 100644 (file)
@@ -57,6 +57,7 @@ def SAMBA_PIDL(bld, pname, source,
     t = bld(rule='cd .. && ${PIDL} ${OPTIONS} --outputdir ${OUTPUTDIR} -- ${SRC[0].abspath(env)}',
             ext_out    = '.c',
             before     = 'cc',
+            on_results = True,
             shell      = True,
             source     = source,
             target     = out_files,
@@ -124,6 +125,7 @@ def SAMBA_PIDL_TABLES(bld, name, target):
             rule     = '${SRC} --output ${TGT} | sed "s|default/||" > ${TGT}',
             ext_out  = '.c',
             before   = 'cc',
+            on_results = True,
             shell    = True,
             source   = '../../librpc/tables.pl',
             target   = target,