diff --git a/Makefile.msvc b/Makefile.msvc
index 8ee1e70..4607f25 100644
--- a/Makefile.msvc
+++ b/Makefile.msvc
@@ -27,7 +27,7 @@ SRC_DIR     = "$(ROOT_DIR)/src"
 BUNDLE_DIR  = "$(ROOT_DIR)/bundle"
 BUNDLES_DIR = "$(ROOT_DIR)/bundles"
 TTD         = openttd.exe
-TARGET     := $(shell echo $(PLATFORM) | sed "s@win64@x64@;s@win32@Win32@")
+TARGET     := $(shell echo $(PLATFORM) | tr '[A-Z]' '[a-z]' | sed "s@win64@x64@;s@win32@Win32@")
 
 all:
 	$(Q)cp objs/$(TARGET)/Release/$(TTD) $(BIN_DIR)/$(TTD)
