Skip to content

Commit 5094a0f

Browse files
committed
build: Pass BSDmakefile args to gmake
Minor convenience for platforms that doesn't have gmake installed but prefer the habit of writing make instead of gmake. test needs to live in .PHONY to get passed on to gmake. PR-URL: #1298 Reviewed-By: Fedor Indutny <[email protected]>
1 parent 4dc6ae2 commit 5094a0f

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

BSDmakefile

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,8 @@
1-
all:
2-
@echo "I need GNU make. Please run \`gmake\` instead."
1+
all: .DEFAULT
2+
.DEFAULT:
3+
@which gmake > /dev/null 2>&1 ||\
4+
(echo "GMake is required for io.js to build.\
5+
Install and try again" && exit 1)
6+
@gmake ${.MAKEFLAGS} ${.TARGETS}
7+
8+
.PHONY: test

0 commit comments

Comments
 (0)