Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

executable file 45 lines (32 sloc) 0.779 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
@NODE_PATH=./lib:$NODE_PATH ./node_modules/.bin/expresso
else
test: test-tmp
@NODE_PATH=./lib:$NODE_PATH ./node_modules/.bin/expresso test/${only}.test.js
endif
fix:
@fixjsstyle lib/*js bin/*js test/*js examples/*/*.js examples/*/*/*.js
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.