Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohan Bergström <bugs@bergstroem.nu>2015-03-31 03:17:25 +0300
committerJohan Bergström <bugs@bergstroem.nu>2015-04-01 03:00:58 +0300
commit5094a0fde3c3e8925f6f9cb7ff0e65e527a4845e (patch)
tree4df8fcb036889a865a4f177a3915e549bc294d88 /BSDmakefile
parent4dc6ae2181715157f91372c26d11c3d3ff2742ba (diff)
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 <fedor@indutny.com>
Diffstat (limited to 'BSDmakefile')
-rw-r--r--BSDmakefile10
1 files changed, 8 insertions, 2 deletions
diff --git a/BSDmakefile b/BSDmakefile
index 227ee743a9e..b7000b0796e 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