mirror of
https://gitlab.com/ita1024/waf.git
synced 2024-11-22 09:57:15 +01:00
16 lines
413 B
Plaintext
16 lines
413 B
Plaintext
|
#! /usr/bin/env python
|
||
|
|
||
|
"""
|
||
|
An example to show how multiple tasks can modify the same file
|
||
|
"""
|
||
|
|
||
|
def configure(conf):
|
||
|
pass
|
||
|
|
||
|
def build(bld):
|
||
|
bld.env.A = "test (change me) "
|
||
|
bld(rule="echo '${A}' > ${TGT}", target='foo.txt', name='foo')
|
||
|
bld(rule='echo `cat ${SRC} ${SRC}` > ${SRC}', source='foo.txt', name='one')
|
||
|
bld(rule='echo `cat ${SRC} ${SRC}` > ${SRC}', source='foo.txt', after=['one'], name='two')
|
||
|
|