diff options
author | Chris Johns <chrisj@rtems.org> | 2017-01-10 10:11:05 +1100 |
---|---|---|
committer | Chris Johns <chrisj@rtems.org> | 2017-01-10 10:11:05 +1100 |
commit | 782b4fec717a9e9d99ad08b42c0e807c0e38c777 (patch) | |
tree | ba98fd9a541af0fe7cc1dc6373523a5614ec8bb1 /wscript | |
parent | waf: Create an XML Catalogue. (diff) | |
download | rtems-docs-782b4fec717a9e9d99ad08b42c0e807c0e38c777.tar.bz2 |
waf: Improved XML Catalogue generator.
Diffstat (limited to 'wscript')
-rw-r--r-- | wscript | 11 |
1 files changed, 6 insertions, 5 deletions
@@ -6,6 +6,7 @@ from sys import path from os.path import abspath path.append(abspath('common')) +import waflib import waf as docs_waf build_all = ['bsp-howto', @@ -30,15 +31,15 @@ def configure(conf): conf.recurse(b) conf.env['BUILD_FROM_TOP'] = 'yes' -def xml_catalogue(ctx): - docs_waf.xml_catalogue(ctx) +def catalogue(ctx): + docs_waf.xml_catalogue(ctx, building) def build(ctx): - ctx.catalogue = {} - ctx.add_post_fun(xml_catalogue) for b in building: ctx.recurse(b) - ctx.install_files('${PREFIX}', 'catalogue.xml') + ctx(rule = catalogue, + target = 'catalogue.xml', + source = ['wscript', 'common/waf.py']) def install(ctx): for b in building: |