-
Notifications
You must be signed in to change notification settings - Fork 47
/
Makefile
63 lines (46 loc) · 1.59 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
#!/bin/sh
MLF=./tools/run-memoryleaks-finder.js
NI=./node_modules/.bin/node-inspector
NI_DEBUG_PORT=5858
NI_WEB_PORT=8888
WEB_BROWSER=google-chrome
all: waf
clean:
rm -rf ./build
rm -f ./mysql_bindings.node
rm -f waf-stamp
rm -f gyp-stamp
clean-all: clean
rm -f devdependencies-stamp
waf: waf-stamp
waf-stamp: ./wscript ./src/*
touch waf-stamp
node-waf configure
node-waf build
gyp: gyp-stamp
gyp-stamp: ./binding.gyp ./src/*
touch gyp-stamp
node-gyp configure
node-gyp build
test: devdependencies
./node_modules/.bin/nodeunit tests/simple tests/complex tests/issues
test-all: devdependencies
./node_modules/.bin/nodeunit tests/simple tests/complex tests/slow tests/issues
test-profile: devdependencies
rm -f v8.log
/usr/bin/env node --prof ./node_modules/.bin/nodeunit tests/simple tests/complex tests/issues
/usr/bin/env linux-tick-processor v8.log > v8.processed.log
#lint: devdependencies
#cpplint ./src/*.h ./src/*.cc
#./node_modules/.bin/nodelint --config ./nodelint.conf ./package.json ./mysql-libmysqlclient.js ./doc ./tools/*.js
#./node_modules/.bin/nodelint --config ./nodelint.conf ./tests
inspector: devdependencies
${NI} --web-port=${NI_WEB_PORT} &
${WEB_BROWSER} http://127.0.0.1:${NI_WEB_PORT}/debug?port=${NI_DEBUG_PORT}
mlf: devdependencies build ./mysql-libmysqlclient.js
/usr/bin/env node --expose-gc --debug ${MLF} #--debugger_port=${NI_DEBUG_PORT} ${MLF}
devdependencies: devdependencies-stamp
devdependencies-stamp:
touch devdependencies-stamp
npm install --dev .
.PHONY: all waf gyp clean clean-all test test-all test-profile lint inspector mlf