build: fix man page install path on the BSDs

Fixes #2026.
pull/22966/head
Ben Noordhuis 2011-11-07 06:46:05 +01:00
parent 1001cf412c
commit edcfea5d02
1 changed files with 2 additions and 1 deletions

View File

@ -959,7 +959,8 @@ def build(bld):
# Only install the man page if it exists. # Only install the man page if it exists.
# Do 'make doc install' to build and install it. # Do 'make doc install' to build and install it.
if os.path.exists('doc/node.1'): if os.path.exists('doc/node.1'):
bld.install_files('${PREFIX}/share/man/man1/', 'doc/node.1') prefix = 'bsd' in sys.platform and '${PREFIX}' or '${PREFIX}/share'
bld.install_files(prefix + '/man/man1/', 'doc/node.1')
bld.install_files('${PREFIX}/bin/', 'tools/node-waf', chmod=0755) bld.install_files('${PREFIX}/bin/', 'tools/node-waf', chmod=0755)
bld.install_files('${LIBDIR}/node/wafadmin', 'tools/wafadmin/*.py') bld.install_files('${LIBDIR}/node/wafadmin', 'tools/wafadmin/*.py')