all: add git submodule support
This is a simple change to the all
build system to support git submodules in repositories if they exist.
Basically it adds --recurse-submodules
option to git clone
so submodules are cloned recursively at clone time.
It also calls git submodule update --init --recursive
everytime a git checkout
or a git pull
is performed, cloning the submodules if they are missing or checking-out the submodules to their references stored in the parent repository.
I don't know how to test this at this point.