summaryrefslogtreecommitdiffstats
path: root/wscript
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2020-12-21 18:14:10 +0100
committerDavid Robillard <d@drobilla.net>2020-12-21 18:14:10 +0100
commitd361ce65d3841c9f97d27ac477c2e55c3802b381 (patch)
treec710d7deab629c6179ccf663f0421750b801a667 /wscript
parentb3067e5a5dd1d92551d166a5095821e9033c0b7c (diff)
downloadsratom-d361ce65d3841c9f97d27ac477c2e55c3802b381.tar.gz
sratom-d361ce65d3841c9f97d27ac477c2e55c3802b381.tar.bz2
sratom-d361ce65d3841c9f97d27ac477c2e55c3802b381.zip
Generate documentation with Sphinx
Diffstat (limited to 'wscript')
-rw-r--r--wscript6
1 files changed, 5 insertions, 1 deletions
diff --git a/wscript b/wscript
index 9a8935c..3925809 100644
--- a/wscript
+++ b/wscript
@@ -41,6 +41,9 @@ def configure(conf):
if not conf.env.BUILD_SHARED and not conf.env.BUILD_STATIC:
conf.fatal('Neither a shared nor a static build requested')
+ if conf.env.DOCS:
+ conf.load('sphinx')
+
if Options.options.strict:
# Check for programs used by lint target
conf.find_program("flake8", var="FLAKE8", mandatory=False)
@@ -171,7 +174,8 @@ def build(bld):
linkflags = test_linkflags)
# Documentation
- autowaf.build_dox(bld, 'SRATOM', SRATOM_VERSION, top, out)
+ if bld.env.DOCS:
+ bld.recurse('doc/c')
bld.add_post_fun(autowaf.run_ldconfig)