diff options
author | Johan Bergström <bugs@bergstroem.nu> | 2015-03-31 11:17:25 +1100 |
---|---|---|
committer | Johan Bergström <bugs@bergstroem.nu> | 2015-04-01 11:00:58 +1100 |
commit | 5094a0fde3c3e8925f6f9cb7ff0e65e527a4845e (patch) | |
tree | 4df8fcb036889a865a4f177a3915e549bc294d88 /BSDmakefile | |
parent | 4dc6ae2181715157f91372c26d11c3d3ff2742ba (diff) | |
download | android-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-- | BSDmakefile | 10 |
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 |