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 60 lines (43 sloc) 1.246 kb
#http://www.gnu.org/prep/standards/html_node/Standard-Targets.html#Standard-Targets
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
gyp:
python gen_settings.py
python gyp/gyp build.gyp --depth=. -f make --generator-output=./projects/makefiles
make -j$(NPROCS) -C ./projects/makefiles/ V=1
cp projects/makefiles/out/Default/_mapnik.node lib/_mapnik.node
install: all
@node-waf build install
mapnik.node:
@node-waf build -j $(NPROCS)
clean:
@node-waf clean distclean
@rm -rf ./projects/makefiles/
uninstall:
@node-waf uninstall
test-tmp:
@rm -rf test/tmp
@mkdir -p test/tmp
ifndef only
test: test-tmp
@PATH="./node_modules/mocha/bin:${PATH}" && NODE_PATH="./lib:$(NODE_PATH)" mocha -R spec
else
test: test-tmp
@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 gyp
Jump to Line
Something went wrong with that request. Please try again.