tools: Corrections and visual improvements for nfd-status-http-server

Change-Id: I123020f023d9dc52268a35d4ad7aa4752e79309b
Refs: #1690
diff --git a/wscript b/wscript
index 553529b..7a03afd 100644
--- a/wscript
+++ b/wscript
@@ -190,20 +190,6 @@
         IF_HAVE_LIBPCAP="" if bld.env['HAVE_LIBPCAP'] else "; ",
         IF_HAVE_WEBSOCKET="" if bld.env['HAVE_WEBSOCKET'] else "; ")
 
-    for file in bld.path.ant_glob('tools/nfd-status-http-server-files/*'):
-        bld(features="subst",
-            source='tools/nfd-status-http-server-files/%s' % (str(file)),
-            target='nfd-status-http-server/%s' % (str(file)),
-            install_path="${DATAROOTDIR}/ndn",
-            VERSION=VERSION)
-
-    bld(features='subst',
-        source='tools/nfd-status-http-server.py',
-        target='bin/nfd-status-http-server',
-        install_path="${BINDIR}",
-        chmod=Utils.O755,
-        VERSION=VERSION)
-
     if bld.env['SPHINX_BUILD']:
         bld(features="sphinx",
             builder="man",
@@ -213,7 +199,7 @@
             install_path="${MANDIR}/",
             VERSION=VERSION)
 
-    for script in bld.path.ant_glob('tools/*.sh'):
+    for script in bld.path.ant_glob(['tools/*.sh', 'tools/*.py']):
         bld(features='subst',
             source='tools/%s' % (str(script)),
             target='bin/%s' % (str(script.change_ext(''))),
@@ -221,6 +207,9 @@
             chmod=Utils.O755,
             VERSION=VERSION)
 
+    bld.install_files("${DATAROOTDIR}/ndn",
+                      bld.path.ant_glob('tools/nfd-status-http-server-files/*'))
+
 def docs(bld):
     from waflib import Options
     Options.commands = ['doxygen', 'sphinx'] + Options.commands