From d7a9388fe0ac3b6df9e5994da1343488b17469cd Mon Sep 17 00:00:00 2001 From: Damien George Date: Mon, 14 Oct 2019 12:09:06 +1100 Subject: ports: Add new make target "submodules" which inits required modules. --- py/mkrules.mk | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'py') diff --git a/py/mkrules.mk b/py/mkrules.mk index f9d77c317..a75c64db9 100644 --- a/py/mkrules.mk +++ b/py/mkrules.mk @@ -143,6 +143,13 @@ clean-prog: .PHONY: clean-prog endif +submodules: + $(ECHO) "Updating submodules: $(GIT_SUBMODULES)" +ifneq ($(GIT_SUBMODULES),) + $(Q)git submodule update --init $(addprefix $(TOP)/,$(GIT_SUBMODULES)) +endif +.PHONY: submodules + LIBMICROPYTHON = libmicropython.a # We can execute extra commands after library creation using -- cgit v1.2.3