From: Jérémie Astor Date: Fri, 13 May 2022 23:20:16 +0000 (+0200) Subject: Revert ":wrench: Fix Makefile for CMD" X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=b4fff0a1fd2ccb60e5debac63d1c6f165c6b1aa7;p=gwion.git Revert ":wrench: Fix Makefile for CMD" This reverts commit 63e807d3b83d771749304fff3c40df13a39b9e51. --- diff --git a/Makefile b/Makefile index 7110f455..cc45a093 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ GWION_PACKAGE=gwion -ifeq (,$(wildcard util/Makefile)) +ifeq (,$(wildcard util/config.mk.orig)) $(warning "missing git submodules, please run:") $(error "git submodules update --init --recursive") endif @@ -69,7 +69,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})