test: make the node-weak install build agaist this repo
authorNathan Rajlich <nathan@tootallnate.net>
Sun, 27 May 2012 07:47:40 +0000 (00:47 -0700)
committerNathan Rajlich <nathan@tootallnate.net>
Tue, 5 Jun 2012 17:25:39 +0000 (10:25 -0700)
This prevents node-gyp from attempting to download dev header files from
nodejs.org. Instead, the files in this repo will be used to build the module.

Makefile

index a80da5141fb3a786d7c3c121c28a38aa789bd004..5cb6753dd18e8f6f8f33efb7623f83faa3666a1f 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -65,6 +65,7 @@ node_modules/weak:
        @if [ ! -f node ]; then make all; fi
        @if [ ! -d node_modules ]; then mkdir -p node_modules; fi
        ./node deps/npm/bin/npm-cli.js install weak \
+               --nodedir="$(shell pwd)" \
                --prefix="$(shell pwd)" --unsafe-perm # go ahead and run as root.
 
 test-gc: all node_modules/weak