You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
413 B
Python
16 lines
413 B
Python
#! /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')
|
|
|