Skip to content
This repository was archived by the owner on Aug 5, 2022. It is now read-only.

Commit 4dec9eb

Browse files
rzrgrgustaf
authored andcommitted
[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 <[email protected]>
1 parent e4e4c95 commit 4dec9eb

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

Makefile

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -327,13 +327,14 @@ analyze: $(JS)
327327

328328
# Update dependency repos
329329
.PHONY: update
330-
update:
331-
@git submodule update --init
332-
@cd $(OCF_ROOT); git submodule update --init;
330+
update: .gitmodules
331+
@git submodule update --init --recursive
332+
333+
${JERRY_BASE}/CMakeLists.txt: update
333334

334335
# set up prj.conf file
335336
-.PHONY: setup
336-
setup:
337+
setup: ${JERRY_BASE}/CMakeLists.txt
337338
ifeq ($(ASHELL), ashell)
338339
ifeq ($(filter ide,$(MAKECMDGOALS)),ide)
339340
@echo CONFIG_USB_CDC_ACM=n >> prj.conf

0 commit comments

Comments
 (0)