From 5094a0fde3c3e8925f6f9cb7ff0e65e527a4845e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Johan=20Bergstr=C3=B6m?= Date: Tue, 31 Mar 2015 11:17:25 +1100 Subject: [PATCH] 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: https://github.com/iojs/io.js/pull/1298 Reviewed-By: Fedor Indutny --- BSDmakefile | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/BSDmakefile b/BSDmakefile index 227ee743a9efdd..b7000b0796e375 100644 --- a/BSDmakefile +++ b/BSDmakefile @@ -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