From 967d142e6bd673c20dbd0d423d5e0501313a50fd Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=A9mie=20Astor?= Date: Wed, 20 Apr 2022 12:38:20 +0200 Subject: [PATCH] :wrench: install submodules if not present --- Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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}) -- 2.43.0