summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorKonstantin Käfer <mail@kkaefer.com>2014-05-12 10:40:10 +0200
committerKonstantin Käfer <mail@kkaefer.com>2014-05-12 10:40:10 +0200
commitd964128cc5ab682055f972e74bd617e163bc7bf4 (patch)
tree4e27b7ce68c8d96ca4637db3d9868f9ad1788846 /Makefile
parent604e558d46e0e49a0e3f232610c608bc8f698e1d (diff)
downloadqtlocation-mapboxgl-d964128cc5ab682055f972e74bd617e163bc7bf4.tar.gz
make sure node is available
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile12
1 files changed, 7 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index 1b262cc916..d3b74c86b5 100644
--- a/Makefile
+++ b/Makefile
@@ -7,10 +7,12 @@ V ?= 1
all: llmr
# Builds the regular library
-llmr: config.gypi llmr.gyp
+llmr: config.gypi llmr.gyp node
deps/run_gyp llmr.gyp --depth=. -Goutput_dir=.. --generator-output=./build/llmr -f make
make -C build/llmr V=$(V) llmr-x86
+node:
+ @if [ ! `which node` ]; then echo 'error: depends on node.js. please make sure node is on your PATH'; exit 1; fi;
##### Test cases ###############################################################
@@ -40,7 +42,7 @@ run-headless-test: build/test/Makefile
# Builds the linux app with make. This is also used by Travis CI
-linux: config.gypi linux/llmr-app.gyp
+linux: config.gypi linux/llmr-app.gyp node
deps/run_gyp linux/llmr-app.gyp --depth=. -Goutput_dir=.. --generator-output=./build/linux -f make
make -C build/linux V=$(V) linuxapp
@@ -52,17 +54,17 @@ run-linux: linux
##### Xcode projects ###########################################################
# build Mac OS X project for Xcode
-xproj: config.gypi macosx/llmr-app.gyp
+xproj: config.gypi macosx/llmr-app.gyp node
deps/run_gyp macosx/llmr-app.gyp --depth=. --generator-output=./build -f xcode
open ./build/macosx/llmr-app.xcodeproj
# build iOS project for Xcode
-iproj: config.gypi ios/llmr-app.gyp
+iproj: config.gypi ios/llmr-app.gyp node
deps/run_gyp ios/llmr-app.gyp --depth=. --generator-output=./build -f xcode
open ./build/ios/llmr-app.xcodeproj
# build Linux project for Xcode (Runs on Mac OS X too, but without platform-specific code)
-lproj: config.gypi linux/llmr-app.gyp
+lproj: config.gypi linux/llmr-app.gyp node
deps/run_gyp linux/llmr-app.gyp --depth=. --generator-output=./build -f xcode
open ./build/linux/llmr-app.xcodeproj