From e5539a570f51bf739063e883e5c67c25831e9f67 Mon Sep 17 00:00:00 2001 From: hasheddan Date: Sun, 18 Oct 2020 13:45:29 -0500 Subject: [PATCH] Add submodules target to main makefile Adds a submodules convenience target to main makefile. Submodules must be initialized before other targets can run successfully. Signed-off-by: hasheddan --- Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index ba7afc1ac1..1fc07c26bf 100644 --- a/Makefile +++ b/Makefile @@ -51,7 +51,7 @@ WEAKEN_SYMBOLS=\ -W __umodti3 \ -W __rust_probestack -.PHONY: all clean fmt install install-headers libs test +.PHONY: all clean fmt install install-headers libs submodules test all: | libs @@ -96,6 +96,10 @@ install-libs: libs install: install-headers install-libs +submodules: + git submodule sync + git submodule update --init --recursive + sysroot: all rm -rf $@ rm -rf $@.partial