From 619b093dac16e3df9313c9215986ae603d192903 Mon Sep 17 00:00:00 2001 From: Vladiwostok Date: Sun, 5 Nov 2023 13:33:50 +0200 Subject: [PATCH] Fix GDC config in makefile --- makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/makefile b/makefile index 1498b875..75cae6f9 100644 --- a/makefile +++ b/makefile @@ -129,10 +129,10 @@ FIRST_RUN_FLAG := $(OBJ_DIR)/$(DC)/first_run.flag $(OBJ_DIR)/$(DC)/%.o: %.d if [ ! -f $(FIRST_RUN_FLAG) ]; then \ - if [ -ne $(DC) $(GDC) ]; then \ - ${DC} -run dmd/config.d bin VERSION /etc; \ + if [[ "$(DC)" == *"$(GDC)"* ]]; then \ + ${DC} dmd/config.d -o config && ./config bin VERSION /etc; \ else \ - ${DC} dmd/config.d -o config && .config bin VERSION /etc; \ + ${DC} -run dmd/config.d bin VERSION /etc; \ fi; \ touch $(FIRST_RUN_FLAG); \ fi