aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilippe Coval <philippe.coval@osg.samsung.com>2018-03-06 20:22:41 +0100
committerGeoff Gustafson <geoff@linux.intel.com>2018-03-06 11:22:41 -0800
commit4dec9ebb1fd537bfbd3d197994f79d7e100d5599 (patch)
treef61011b5e7cc2f9043ba4f2a716181a31c952576
parente4e4c95cd28a22af1cb54a50b7695f0eff3c7c50 (diff)
[build] Update git modules recursively if needed (#1850)
If project's sources are not cloned recursively, or updated manualy using: git submodule update --init --recursive Dependencies modules will be fetched by GNU make. Signed-off-by: Philippe Coval <philippe.coval@osg.samsung.com>
-rw-r--r--Makefile9
1 files changed, 5 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 696fbc5..482a0b9 100644
--- a/Makefile
+++ b/Makefile
@@ -327,13 +327,14 @@ analyze: $(JS)
# Update dependency repos
.PHONY: update
-update:
- @git submodule update --init
- @cd $(OCF_ROOT); git submodule update --init;
+update: .gitmodules
+ @git submodule update --init --recursive
+
+${JERRY_BASE}/CMakeLists.txt: update
# set up prj.conf file
-.PHONY: setup
-setup:
+setup: ${JERRY_BASE}/CMakeLists.txt
ifeq ($(ASHELL), ashell)
ifeq ($(filter ide,$(MAKECMDGOALS)),ide)
@echo CONFIG_USB_CDC_ACM=n >> prj.conf