waf

FORK: waf with some random patches
git clone https://git.neptards.moe/neptards/waf.git
Log | Files | Refs | README

wscript (413B)


      1 #! /usr/bin/env python
      2 
      3 """
      4 An example to show how multiple tasks can modify the same file
      5 """
      6 
      7 def configure(conf):
      8 	pass
      9 
     10 def build(bld):
     11 	bld.env.A = "test (change me) "
     12 	bld(rule="echo '${A}' > ${TGT}", target='foo.txt', name='foo')
     13 	bld(rule='echo `cat ${SRC}     ${SRC}`  > ${SRC}', source='foo.txt', name='one')
     14 	bld(rule='echo `cat ${SRC} ${SRC}`  > ${SRC}', source='foo.txt', after=['one'], name='two')
     15