Commit 00f1aa3d by Dane Springmeyer

improved Makefile wrapper for dev

parent 9e0fcb7f
build: #http://www.gnu.org/prep/standards/html_node/Standard-Targets.html#Standard-Targets
export PATH=`npm explore npm -g -- pwd`/bin/node-gyp-bin:$$PATH && ./node_modules/.bin/node-pre-gyp build
all: build
./node_modules:
npm install --build-from-source
build: ./node_modules
./node_modules/.bin/node-pre-gyp build --loglevel=silent
debug:
./node_modules/.bin/node-pre-gyp rebuild --debug
verbose:
./node_modules/.bin/node-pre-gyp rebuild --loglevel=verbose
clean: clean:
rm -f ./lib/node_sqlite3.node @rm -rf ./build
rm -rf ./lib/binding/ rm -rf lib/binding/
#rm -f ./test/support/big.db* rm ./test/tmp/*
rm -f test/support/big.db-journal rm -f test/support/big.db-journal
rm -f ./test/tmp/* rm -rf ./node_modules/
rm -rf ./deps/sqlite-autoconf-*/
rm -rf ./build
rm -rf ./out
grind:
valgrind --leak-check=full node node_modules/.bin/_mocha
rebuild:
@make clean
@make
ifndef only
test: test:
npm test @PATH="./node_modules/mocha/bin:${PATH}" && NODE_PATH="./lib:$(NODE_PATH)" mocha -R spec
else
test:
@PATH="./node_modules/mocha/bin:${PATH}" && NODE_PATH="./lib:$(NODE_PATH)" mocha -R spec test/${only}.test.js
endif
check: test
.PHONY: build clean test .PHONY: test clean build
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