diff options
author | Philippe Coval <philippe.coval@osg.samsung.com> | 2018-03-06 20:22:41 +0100 |
---|---|---|
committer | Geoff Gustafson <geoff@linux.intel.com> | 2018-03-06 11:22:41 -0800 |
commit | 4dec9ebb1fd537bfbd3d197994f79d7e100d5599 (patch) | |
tree | f61011b5e7cc2f9043ba4f2a716181a31c952576 | |
parent | e4e4c95cd28a22af1cb54a50b7695f0eff3c7c50 (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-- | Makefile | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -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 |