From 730af8c26748488b3102e68095626eb4d28535ce Mon Sep 17 00:00:00 2001 From: mjcox244 <66311016+mjcox244@users.noreply.github.com> Date: Sun, 22 May 2022 05:08:54 +0100 Subject: [PATCH] Fix for Icon In dumb msys DIR (#111) --- Makefile | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index c24ecf32..6c5ef9ae 100644 --- a/Makefile +++ b/Makefile @@ -904,13 +904,15 @@ endif #icon ifeq ($(WINDOWS_BUILD),1) ifeq ($(ICON),1) - Command := mkdir $(BUILD_DIR)/res - Resp := $(shell $(call Command)) + Command := mkdir -p "$(BUILD_DIR)/res" + Resp := $(shell $(call Command)) - Command := windres -o "$(BUILD_DIR)/res/icon.o" -i res/icon.rc - Resp := $(shell $(call Command)) + Command := windres -o "$(BUILD_DIR)/res/icon.o" -i "res/icon.rc" + Resp := $(shell $(call Command)) - LDFLAGS += $(BUILD_DIR)/res/icon.o + ifeq ($(.SHELLSTATUS),0) + LDFLAGS += $(BUILD_DIR)/res/icon.o + endif endif endif