Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

executable file 41 lines (30 sloc) 0.829 kB
all: mapnik.node
NPROCS:=1
OS:=$(shell uname -s)
ifeq ($(OS),Linux)
NPROCS:=$(shell grep -c ^processor /proc/cpuinfo)
endif
ifeq ($(OS),Darwin)
NPROCS:=$(shell sysctl -n hw.ncpu)
endif
install: all
@node-waf build install
mapnik.node:
@node-waf build -j $(NPROCS)
clean:
@node-waf clean distclean
uninstall:
@node-waf uninstall
test-tmp:
@rm -rf tests/tmp
@mkdir -p tests/tmp
ifndef only
test: test-tmp
@if test -e "node_modules/expresso/"; then ./node_modules/expresso/bin/expresso -I lib tests/*.test.js; else expresso -I lib tests/*.test.js; fi;
else
test: test-tmp
@if test -e "node_modules/expresso/"; then ./node_modules/expresso/bin/expresso -I lib tests/${only}.test.js; else expresso -I lib tests/${only}.test.js; fi;
endif
lint:
./node_modules/.bin/jshint lib/*js --config=jshint.json
.PHONY: test
Jump to Line
Something went wrong with that request. Please try again.