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.
20 lines
382 B
Python
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')
|
|
|