Install wafadmin into $PREFIX/lib/node/wafadmin

This is in preparation for a special node_waf script for building external
modules.

Also change system library path to $PREFIX/lib/node/libraries
pull/22966/head
Ryan Dahl 2009-10-03 19:08:05 +02:00
parent eeaa267cbe
commit 6f17ca51c3
2 changed files with 7 additions and 2 deletions

View File

@ -53,7 +53,7 @@ clearInterval = clearTimeout;
// Module // Module
node.libraryPaths = [ node.path.join(ENV["HOME"], ".node_libraries") node.libraryPaths = [ node.path.join(ENV["HOME"], ".node_libraries")
, node.path.join(node.installPrefix, "lib/node_libraries") , node.path.join(node.installPrefix, "lib/node/libraries")
, "/" , "/"
]; ];

View File

@ -372,4 +372,9 @@ def build(bld):
"""); """);
bld.install_files('${PREFIX}/share/man/man1/', 'doc/node.1'); bld.install_files('${PREFIX}/share/man/man1/', 'doc/node.1');
bld.install_files('${PREFIX}/bin/', 'bin/*', chmod=0755); bld.install_files('${PREFIX}/bin/', 'bin/*', chmod=0755);
bld.install_files('${PREFIX}/lib/node_libraries/', 'lib/*.js');
# Why am I using two lines? Because WAF SUCKS.
bld.install_files('${PREFIX}/lib/node/wafadmin', 'tools/wafadmin/*.py');
bld.install_files('${PREFIX}/lib/node/wafadmin/Tools', 'tools/wafadmin/Tools/*.py');
bld.install_files('${PREFIX}/lib/node/libraries/', 'lib/*.js');