summaryrefslogtreecommitdiff
path: root/BSDmakefile
diff options
context:
space:
mode:
Diffstat (limited to 'BSDmakefile')
-rw-r--r--BSDmakefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/BSDmakefile b/BSDmakefile
index b7000b0796..fa0b4a9b87 100644
--- a/BSDmakefile
+++ b/BSDmakefile
@@ -1,8 +1,11 @@
+# pmake might add -J (private)
+FLAGS=${.MAKEFLAGS:C/\-J ([0-9]+,?)+//W}
+
all: .DEFAULT
.DEFAULT:
@which gmake > /dev/null 2>&1 ||\
(echo "GMake is required for io.js to build.\
Install and try again" && exit 1)
- @gmake ${.MAKEFLAGS} ${.TARGETS}
+ @gmake ${.FLAGS} ${.TARGETS}
.PHONY: test