diff --git a/Makefile b/Makefile
index ba7afc1ac1ebe21dd65941351a0c787bf53e5ce7..1fc07c26bf3cfa4fb7e8368be5a29d8bc8a94784 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