Clone in a terminal:
#! /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')

Contact

Email: johan.mattsson.m@gmail.com
Mastodon: typo.social/@birdfont
GitHub: johanmattssonm
LinkedIn: johan-mattsson-2ab324112