Browse Source

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 <[email protected]>
hasheddan 4 years ago
parent
commit
e5539a570f
1 changed files with 5 additions and 1 deletions
  1. 5 1
      Makefile

+ 5 - 1
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 [email protected]