From 2b774102fe6a74be51ea4953170f256778970cb5 Mon Sep 17 00:00:00 2001 From: Gareth McMullin Date: Thu, 5 Mar 2015 22:17:22 -0800 Subject: [PATCH] Initialise git submodules automatically on make if not done already. --- Makefile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Makefile b/Makefile index e7e43486..5a8365e9 100644 --- a/Makefile +++ b/Makefile @@ -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