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

16 lines
337 B
Python

#! /usr/bin/env python
"""
ctx.add_manual_dependency
change the file 'testfile' and see how it affects the rebuild of 'somecopy'
"""
def configure(ctx):
pass
def build(ctx):
ctx(rule='cp ${SRC} ${TGT}', source='wscript', target='somecopy')
ctx.add_manual_dependency(ctx.path.find_node('wscript'), ctx.path.find_node('testfile'))