Sync sphinx build config with ndn-cxx, improve README.md
Change-Id: Ib47bbe35f41b3a23523c0f66d7e5f321d7f82c2e
diff --git a/wscript b/wscript
index 0af89ba..3f41bcb 100644
--- a/wscript
+++ b/wscript
@@ -76,7 +76,17 @@
bld.recurse('tools')
bld.recurse('tests')
- bld.recurse('manpages')
+
+ if bld.env.SPHINX_BUILD:
+ bld(features='sphinx',
+ name='manpages',
+ builder='man',
+ config='manpages/conf.py',
+ outdir='manpages',
+ source=bld.path.ant_glob('manpages/*.rst'),
+ install_path='${MANDIR}',
+ version=VERSION_BASE,
+ release=VERSION)
def version(ctx):
# don't execute more than once