Initialise git submodules automatically on make if not done already.

This commit is contained in:
Gareth McMullin 2015-03-05 22:17:22 -08:00
parent a54e4c831c
commit 2b774102fe
1 changed files with 5 additions and 0 deletions

View File

@ -1,4 +1,9 @@
all:
@if [ ! -f libopencm3/Makefile ]; then \
echo "Initialising git submodules..." ;\
git submodule init ;\
git submodule update ;\
fi
$(MAKE) -C libopencm3 lib
$(MAKE) -C src