From: Jérémie Astor Date: Wed, 20 Apr 2022 10:38:20 +0000 (+0200) Subject: :wrench: install submodules if not present X-Git-Tag: nightly~292 X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=967d142e6bd673c20dbd0d423d5e0501313a50fd;p=gwion.git :wrench: install submodules if not present --- diff --git a/Makefile b/Makefile index 0bfeee52..138083da 100644 --- a/Makefile +++ b/Makefile @@ -65,7 +65,10 @@ CFLAGS += -Wno-pedantic CFLAGS += -DGWION_BUILTIN -all: options-show ${PRG} +all: deps options-show ${PRG} + +deps: + [ "$(shell ls util | wc -l)" = "0" ] && git submodule update --init --recursive || true ${PRG}: ${GWLIBS} src/main.o @$(info link ${PRG})