Skip to content
Fetching contributors…
Cannot retrieve contributors at this time
86 lines (66 sloc) 2.72 KB
#!/bin/sh
CURR_HEAD_SHA := $(firstword $(shell git show-ref --hash HEAD | cut -b -6) master)
GITHUB_PROJECT_NAME := Sannis/node-mysql-libmysqlclient
GITHUB_PROJECT_URL := https://github.com/${GITHUB_PROJECT_NAME}
API_SRC_URL_FMT := https://github.com/${GITHUB_PROJECT_NAME}/blob/${CURR_HEAD_SHA}/{file}\#L{line}
API_DEST_DIR := ./doc/api
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: npm-install
npm-install: npm-install-stamp
npm-install-stamp: ./binding.gyp ./src/*
npm install
touch npm-install-stamp
clean:
rm -rf ./build
rm -f ./mysql_bindings.node
rm -f npm-install-stamp
rm -f webkit-devtools-agent-stamp
clean-all: clean
rm -rf ./node_modules
test: npm-install
./node_modules/.bin/nodeunit --reporter=minimal tests/low-level-sync tests/low-level-async \
tests/high-level tests/complex tests/issues \
tests/load-data-infile
test-slow: npm-install
./node_modules/.bin/nodeunit --reporter=minimal tests/slow
test-all: npm-install
./node_modules/.bin/nodeunit --reporter=minimal tests/low-level-sync tests/low-level-async \
tests/high-level tests/complex tests/issues \
tests/slow tests/load-data-infile
test-profile: npm-install
rm -f v8.log
/usr/bin/env node --prof ./node_modules/.bin/nodeunit tests/low-level-sync tests/low-level-async \
tests/high-level tests/complex tests/issues
/usr/bin/env linux-tick-processor v8.log > v8.processed.log
lint: npm-install
cpplint ./src/*.h ./src/*.cc
./node_modules/.bin/nodelint --config ./nodelint.conf ./package.json ./lib ./tools/*.js
./node_modules/.bin/nodelint --config ./nodelint.conf ./tests
webkit-devtools-agent: webkit-devtools-agent-stamp
webkit-devtools-agent-stamp:
npm install webkit-devtools-agent@0.0.4
touch webkit-devtools-agent-stamp
mlf: npm-install webkit-devtools-agent
./tools/memory-leaks-finder-repl.js
valgrind: npm-install webkit-devtools-agent $(shell time)
valgrind \
--leak-check=full --error-limit=no \
--track-origins=yes -v \
--log-file=valgrind.log -- \
node --expose-gc ./tools/memory-usage-show.js
doc: ./lib/* ./src/*
rm -rf ${API_DEST_DIR}
./node_modules/.bin/ndoc \
--gh-ribbon ${GITHUB_PROJECT_URL} \
--link-format ${API_SRC_URL_FMT} \
--output ${API_DEST_DIR} \
--alias cc:js \
--alias h:js \
./lib/*.js ./src/*.cc ./src/*.h
gh-pages:
./gh_pages.sh
.PHONY: all npm-install clean clean-all test test-slow test-all test-profile lint mlf doc
Jump to Line
Something went wrong with that request. Please try again.