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.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.
waf_old/docs/book/examples/execution_build/wscript

20 lines
382 B
Python

#! /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')