Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

42 lines (29 sloc) 0.832 kB
#http://www.gnu.org/prep/standards/html_node/Standard-Targets.html#Standard-Targets
all: mapnik.node
mapnik.node:
PATH=$$PATH:`npm explore npm -g -- pwd`/bin/node-gyp-bin/ node-gyp build
clean:
@rm -rf ./build
rm -f lib/_mapnik.node
rm -f ./test/tmp/*
echo > ./test/tmp/placeholder.txt
rebuild:
@make clean
@./configure
@make
ifndef only
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
fix:
@fixjsstyle lib/*js bin/*js test/*js examples/*/*.js examples/*/*/*.js
fixc:
@tools/fix_cpp_style.sh
@rm src/*.*~
lint:
@./node_modules/.bin/jshint lib/*js bin/*js test/*js examples/*/*.js examples/*/*/*.js
.PHONY: test lint fix
Jump to Line
Something went wrong with that request. Please try again.