Permalink
Browse files

put local expresso on path and clean up test db in clean target

  • Loading branch information...
1 parent 563f3b9 commit 59d9e0aa5f714cd380401aa09d0cdad326ad1fa8 Dane Springmeyer committed Sep 28, 2012
Showing with 4 additions and 2 deletions.
  1. +4 −2 Makefile
View
@@ -3,6 +3,8 @@ build:
node-gyp build
clean:
+ rm test/support/big.db*
+ rm test/tmp/*
node-gyp clean
db:
@@ -14,11 +16,11 @@ db:
ifndef only
test: build db
@rm -rf ./test/tmp && mkdir -p ./test/tmp
- NODE_PATH="./lib:$(NODE_PATH)" expresso -I lib test/*.test.js
+ @PATH="./node_modules/.bin:${PATH}" && NODE_PATH="./lib:$(NODE_PATH)" expresso -I lib test/*.test.js
else
test: build db
@rm -rf ./test/tmp && mkdir -p ./test/tmp
- NODE_PATH="./lib:$(NODE_PATH)" expresso -I lib test/${only}.test.js
+ @PATH="./node_modules/.bin:${PATH}" && NODE_PATH="./lib:$(NODE_PATH)" expresso -I lib test/${only}.test.js
endif
.PHONY: build clean test

0 comments on commit 59d9e0a

Please sign in to comment.