Permalink
Browse files

Merge pull request #120 from Vizzuality/serialbuild

Allow NPROCS to be specified on command line at build time
  • Loading branch information...
2 parents e759f86 + e8dc899 commit 4b4bf1998b422ea93152bda7147feed561ba6d6d Dane Springmeyer committed Aug 16, 2012
Showing with 8 additions and 6 deletions.
  1. +8 −6 Makefile
View
@@ -2,14 +2,16 @@
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)
+ifeq ($(NPROCS),)
+ NPROCS:=1
+ ifeq ($(OS),Linux)
+ NPROCS:=$(shell grep -c ^processor /proc/cpuinfo)
+ endif
+ ifeq ($(OS),Darwin)
+ NPROCS:=$(shell sysctl -n hw.ncpu)
+ endif
endif
gyp:

0 comments on commit 4b4bf19

Please sign in to comment.