cdist changes.
[libsub.git] / cscript
1 import os
2
3 def build(target, options):
4     cmd = './waf configure --prefix=%s' % target.directory
5     if target.platform == 'linux':
6         cmd += ' --static'
7     if target.debug:
8         cmd += ' --enable-debug'
9
10     target.command(cmd)
11     target.command('./waf build install')
12
13 def make_doxygen(target):
14     os.makedirs('build/doc')
15     target.command('doxygen')
16     return os.path.abspath('build/doc/html')