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/build_list/wscript

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')