diff --git a/Makefile b/Makefile index 87a9866..04c0588 100644 --- a/Makefile +++ b/Makefile @@ -8,6 +8,11 @@ submodules: @# Initialize submodules when present @if [ -f .gitmodules ] && command -v git >/dev/null 2>&1; then \ git submodule update --init --recursive; \ + for path in $$(git config --file .gitmodules --get-regexp path | awk '{print $$2}'); do \ + if [ -f "$$path/Makefile" ]; then \ + $(MAKE) -C "$$path"; \ + fi; \ + done; \ fi install: submodules