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.
21 lines
367 B
Python
21 lines
367 B
Python
#! /usr/bin/env python
|
|
|
|
"""
|
|
To list the targets to build, use 'waf list'
|
|
|
|
Try the following
|
|
$ waf configure clean build
|
|
$ waf list
|
|
$ waf clean build --targets=bar
|
|
"""
|
|
|
|
top = '.'
|
|
out = 'build'
|
|
|
|
def configure(ctx):
|
|
pass
|
|
|
|
def build(ctx):
|
|
ctx(source='wscript', target='foo.txt', rule='cp ${SRC} ${TGT}')
|
|
ctx(target='bar.txt', rule='touch ${TGT}', name='bar')
|