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