Clone in a terminal:
#! /usr/bin/env python

"""
A simple build - the file foo.txt is used both as target and as source
Note that the correct build order is computed automatically

$ waf configure clean build
"""

top = '.'
out = 'build_directory'

def configure(ctx):
	pass

def build(ctx):
	ctx(rule='touch ${TGT}', target='foo.txt')
	ctx(rule='cp ${SRC} ${TGT}', source='foo.txt', target='bar.txt')

Contact

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