def build(env, target): cmd = './waf configure --prefix=%s' % env.work_dir_cscript() if target.platform == 'linux': cmd += ' --static' elif target.platform == 'windows': cmd += ' --target-windows' env.command(cmd) env.command('./waf build install')