Commit d5697978 by Nathan Rajlich

Makefile: expand NODE_PATH properly

parent 41b98a8a
...@@ -14,11 +14,11 @@ db: ...@@ -14,11 +14,11 @@ db:
ifndef only ifndef only
test: build db test: build db
@rm -rf ./test/tmp && mkdir -p ./test/tmp @rm -rf ./test/tmp && mkdir -p ./test/tmp
NODE_PATH=./lib:$NODE_PATH expresso -I lib test/*.test.js NODE_PATH="./lib:$(NODE_PATH)" expresso -I lib test/*.test.js
else else
test: build db test: build db
@rm -rf ./test/tmp && mkdir -p ./test/tmp @rm -rf ./test/tmp && mkdir -p ./test/tmp
NODE_PATH=./lib:$NODE_PATH expresso -I lib test/${only}.test.js NODE_PATH="./lib:$(NODE_PATH)" expresso -I lib test/${only}.test.js
endif endif
.PHONY: build clean test .PHONY: build clean test
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment