From b4fff0a1fd2ccb60e5debac63d1c6f165c6b1aa7 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=A9mie=20Astor?= Date: Sat, 14 May 2022 01:20:16 +0200 Subject: [PATCH] Revert ":wrench: Fix Makefile for CMD" This reverts commit 63e807d3b83d771749304fff3c40df13a39b9e51. --- Makefile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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}) -- 2.43.0