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