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

18 lines
426 B
Python

#! /usr/bin/env python
"""
Create task generators to create tasks when necessary,
it is equivalent to the example 'build_manual_tasks'
$ waf configure clean build
"""
def configure(ctx):
pass
def build(ctx):
ctx(rule='cp ${SRC} ${TGT}', source='wscript', target='foo.txt')
ctx(rule='cp ${SRC} ${TGT}', source='wscript', target='bar.txt')
ctx(rule='cat ${SRC} > ${TGT}', source='foo.txt bar.txt', target='foobar.txt')