manpages: build manpages

This commit also imports manpages of ndnpeek and ndnpoke from
NFD:commit:6ee6e07e6f1c068f7658a616982ab785f3bd8b22.

refs #2816

Change-Id: Ibc7bbbbd063af0107fa5883baccc12c7789bcc72
diff --git a/wscript b/wscript
index e846466..900bc17 100644
--- a/wscript
+++ b/wscript
@@ -2,15 +2,15 @@
 import os
 
 VERSION='0.1'
-APPNAME="ndn-tools"
+APPNAME='ndn-tools'
 
 def options(opt):
     opt.load(['compiler_cxx', 'gnu_dirs'])
-    opt.load(['default-compiler-flags'], tooldir=['.waf-tools'])
+    opt.load(['default-compiler-flags', 'sphinx_build'], tooldir=['.waf-tools'])
 
 def configure(conf):
     conf.load(['compiler_cxx', 'gnu_dirs',
-               'default-compiler-flags'])
+               'default-compiler-flags', 'sphinx_build'])
 
     if not os.environ.has_key('PKG_CONFIG_PATH'):
         os.environ['PKG_CONFIG_PATH'] = ':'.join([
@@ -23,6 +23,8 @@
     conf.recurse('tools')
 
 def build(bld):
+    bld.env['VERSION'] = VERSION
+
     bld(
         target='core-objects',
         name='core-objects',
@@ -33,3 +35,4 @@
         )
 
     bld.recurse('tools')
+    bld.recurse('manpages')