diff options
author | Chris Johns <chrisj@rtems.org> | 2017-01-10 10:11:05 +1100 |
---|---|---|
committer | Chris Johns <chrisj@rtems.org> | 2017-01-10 22:38:28 +1100 |
commit | f08d4c194b0afa923891dd833a2e88e90578fd17 (patch) | |
tree | fdb78bb38b722719ff30605bd3077cffbce13ecb /wscript | |
parent | waf: Create an XML Catalogue. (diff) | |
download | rtems-docs-f08d4c194b0afa923891dd833a2e88e90578fd17.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: |