Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 47 lines (34 sloc) 0.898 kB
00f1aa3 @springmeyer improved Makefile wrapper for dev
springmeyer authored
1 #http://www.gnu.org/prep/standards/html_node/Standard-Targets.html#Standard-Targets
2
3 all: build
4
5 ./node_modules:
6 npm install --build-from-source
7
8 build: ./node_modules
9 ./node_modules/.bin/node-pre-gyp build --loglevel=silent
10
11 debug:
12 ./node_modules/.bin/node-pre-gyp rebuild --debug
13
14 verbose:
15 ./node_modules/.bin/node-pre-gyp rebuild --loglevel=verbose
edeb77c @kkaefer more build system changes
kkaefer authored
16
17 clean:
00f1aa3 @springmeyer improved Makefile wrapper for dev
springmeyer authored
18 @rm -rf ./build
19 rm -rf lib/binding/
d2bdf5c @springmeyer upgrade to node-pre-gyp master (future 0.5.x)
springmeyer authored
20 rm -f test/support/big.db-journal
00f1aa3 @springmeyer improved Makefile wrapper for dev
springmeyer authored
21 rm -rf ./node_modules/
edeb77c @kkaefer more build system changes
kkaefer authored
22
00f1aa3 @springmeyer improved Makefile wrapper for dev
springmeyer authored
23 grind:
24 valgrind --leak-check=full node node_modules/.bin/_mocha
25
2ca375d @springmeyer Add testpack target to makefile [skip ci]
springmeyer authored
26 testpack:
27 rm -f ./*tgz
28 npm pack
29 tar -ztvf *tgz
30 rm -f ./*tgz
31
00f1aa3 @springmeyer improved Makefile wrapper for dev
springmeyer authored
32 rebuild:
33 @make clean
34 @make
35
36 ifndef only
86975ec @springmeyer drop make dependency for tests - closes #150
springmeyer authored
37 test:
00f1aa3 @springmeyer improved Makefile wrapper for dev
springmeyer authored
38 @PATH="./node_modules/mocha/bin:${PATH}" && NODE_PATH="./lib:$(NODE_PATH)" mocha -R spec
39 else
40 test:
41 @PATH="./node_modules/mocha/bin:${PATH}" && NODE_PATH="./lib:$(NODE_PATH)" mocha -R spec test/${only}.test.js
42 endif
43
44 check: test
edeb77c @kkaefer more build system changes
kkaefer authored
45
00f1aa3 @springmeyer improved Makefile wrapper for dev
springmeyer authored
46 .PHONY: test clean build
Something went wrong with that request. Please try again.