Some doc improvements.
[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.distro == 'centos':
8             cmd += ' --disable-tests'
9     if target.debug:
10         cmd += ' --enable-debug'
11     if target.platform == 'windows':
12         cmd += ' --target-windows --disable-tests'
13
14     target.command(cmd)
15     target.command('./waf build install')
16
17 def make_doxygen(target):
18     os.makedirs('build/doc')
19     target.command('doxygen')
20     return os.path.abspath('build/doc/html')