summaryrefslogtreecommitdiff
path: root/BSDmakefile
diff options
context:
space:
mode:
authorJohan Bergström <bugs@bergstroem.nu>2015-03-31 11:17:25 +1100
committerJohan Bergström <bugs@bergstroem.nu>2015-04-01 11:00:58 +1100
commit5094a0fde3c3e8925f6f9cb7ff0e65e527a4845e (patch)
tree4df8fcb036889a865a4f177a3915e549bc294d88 /BSDmakefile
parent4dc6ae2181715157f91372c26d11c3d3ff2742ba (diff)
downloadandroid-node-v8-5094a0fde3c3e8925f6f9cb7ff0e65e527a4845e.tar.gz
android-node-v8-5094a0fde3c3e8925f6f9cb7ff0e65e527a4845e.tar.bz2
android-node-v8-5094a0fde3c3e8925f6f9cb7ff0e65e527a4845e.zip
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 227ee743a9..b7000b0796 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