Sophie

Sophie

distrib > Fedora > 14 > i386 > by-pkgid > 42620103d8ee8a2d972d3103bad0ab73 > files > 252

waf-1.5.19-1.fc14.noarch.rpm

#! /usr/bin/env python
# encoding: utf-8
# Thomas Nagy, 2009 (ita)

VERSION='0.0.1'
APPNAME='test'
top = '.'
out = 'build'

def configure(conf):
	conf.find_program('touch', mandatory=True)

def build(bld):
	# declare the folder "AAA" as a necessary folder in the build directory
	node = bld.path.ensure_dir_node_from_path(['a', 'b'])
	bld.rescan(node)

	# or declare the build nodes
	#bld.path.exclusive_build_node('a/b/index.html')
	bld(target='a/index.html', rule='touch ${TGT}')
	bld(target='a/b/index.html', rule='touch ${TGT}')