2
0
mirror of https://gitlab.com/ita1024/waf.git synced 2024-11-22 09:57:15 +01:00

example for the new bld.rule decorator

This commit is contained in:
Thomas Nagy 2012-09-17 23:45:59 +02:00
parent 56636cf5ff
commit 2a95fc745d

View File

@ -34,3 +34,8 @@ def build(bld):
# this one is just a reminder that simple files can be created (and a test too)
#bld(rule='echo "การไฟ่" > ${TGT}', target='foo.txt')
# and this is an alternate syntax
#@bld.rule(source='wscript', target='wscript2')
#def _(tsk):
# tsk.outputs[0].write(tsk.inputs[0].read())