summaryrefslogtreecommitdiffstats
path: root/wscript
diff options
context:
space:
mode:
authorChris Johns <chrisj@rtems.org>2017-01-10 10:11:05 +1100
committerChris Johns <chrisj@rtems.org>2017-01-10 10:11:05 +1100
commit782b4fec717a9e9d99ad08b42c0e807c0e38c777 (patch)
treeba98fd9a541af0fe7cc1dc6373523a5614ec8bb1 /wscript
parent1a9b02e20dbc89d69ca4b4a64c69659b918a480d (diff)
downloadrtems-docs-782b4fec717a9e9d99ad08b42c0e807c0e38c777.tar.bz2
waf: Improved XML Catalogue generator.
Diffstat (limited to 'wscript')
-rw-r--r--wscript11
1 files changed, 6 insertions, 5 deletions
diff --git a/wscript b/wscript
index 2147c5b..eff1113 100644
--- a/wscript
+++ b/wscript
@@ -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: