Skip to content

Commit

Permalink
build: Pass BSDmakefile args to gmake
Browse files Browse the repository at this point in the history
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 <fedor@indutny.com>
  • Loading branch information
jbergstroem committed Apr 1, 2015
1 parent 4dc6ae2 commit 5094a0f
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions BSDmakefile
Original file line number Diff line number Diff line change
@@ -1,2 +1,8 @@
all:
@echo "I need GNU make. Please run \`gmake\` instead."
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}

.PHONY: test

0 comments on commit 5094a0f

Please sign in to comment.