Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #120 from Vizzuality/serialbuild

Allow NPROCS to be specified on command line at build time
  • Loading branch information...
commit 4b4bf1998b422ea93152bda7147feed561ba6d6d 2 parents e759f86 + e8dc899
@springmeyer springmeyer authored
Showing with 8 additions and 6 deletions.
  1. +8 −6 Makefile
View
14 Makefile
@@ -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:
Please sign in to comment.
Something went wrong with that request. Please try again.