mirror of
https://gitlab.com/ita1024/waf.git
synced 2024-11-22 01:46:15 +01:00
example for the new bld.rule decorator
This commit is contained in:
parent
56636cf5ff
commit
2a95fc745d
@ -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())
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user