]> Nishi Git Mirror - gwion.git/commitdiff
:wrench: install submodules if not present
authorJérémie Astor <fennecdjay@gmail.com>
Wed, 20 Apr 2022 10:38:20 +0000 (12:38 +0200)
committerJérémie Astor <fennecdjay@gmail.com>
Wed, 20 Apr 2022 10:38:20 +0000 (12:38 +0200)
Makefile

index 0bfeee52cf3833ae6fb03aba5dd7c292eb8236e4..138083da7042cefa1de45b87783ca22206e1e125 100644 (file)
--- 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})