summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKonstantin Käfer <mail@kkaefer.com>2015-02-06 12:04:49 +0100
committerKonstantin Käfer <mail@kkaefer.com>2015-02-06 12:04:49 +0100
commit6eb51bea4d8519515ef2e913b5bf0c867216ad05 (patch)
tree856f5061c9fcc7dc804cbf418af319a50991cc18
parent50461b18121759b4f8292039074a8f021bd51f92 (diff)
downloadqtlocation-mapboxgl-6eb51bea4d8519515ef2e913b5bf0c867216ad05.tar.gz
initialize the submodule on build
-rw-r--r--Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 74e30e826b..71586c843a 100644
--- a/Makefile
+++ b/Makefile
@@ -28,6 +28,10 @@ global: build
build: build/Makefile
@node-gyp build $(DEBUG_FLAG) -- -j$(JOBS)
+.PHONY: vendor/mbgl
+vendor/mbgl:
+ git submodule update --init
+
.PHONY: build/Makefile
build/Makefile: $(MBGL)/config/$(HOST).gypi
@node-gyp configure -- \
@@ -38,7 +42,7 @@ build/Makefile: $(MBGL)/config/$(HOST).gypi
-Duv_static_libs= -Duv_ldflags= \
-Goutput_dir=.
-$(MBGL)/config/%.gypi: $(MBGL)/configure
+$(MBGL)/config/%.gypi: $(MBGL) $(MBGL)/configure
make -C $(MBGL) config/$*.gypi
.PHONY: test