aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordundargoc <gocdundar@gmail.com>2025-02-22 16:46:31 +0100
committerdundargoc <33953936+dundargoc@users.noreply.github.com>2025-02-23 11:38:29 +0100
commit4a0ee22e77d169191e7163d1340b835145f4dac9 (patch)
treef4614117090157b2cd359bf617540c8796122344
parentd2cca606a1b67a7e9e093154449f35eaacab0532 (diff)
downloadrneovim-4a0ee22e77d169191e7163d1340b835145f4dac9.tar.gz
rneovim-4a0ee22e77d169191e7163d1340b835145f4dac9.tar.bz2
rneovim-4a0ee22e77d169191e7163d1340b835145f4dac9.zip
build: make makefile work on msys
Relying on $(OS) doesn't work as it's too naive, so we check if $PATH contains a colon instead. Closes https://github.com/neovim/neovim/issues/31027
-rw-r--r--Makefile10
1 files changed, 10 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 596eafed3c..29b2644bb8 100644
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,14 @@
ifeq ($(OS),Windows_NT)
+ ifeq '$(findstring ;,$(PATH))' ';'
+ UNIX_LIKE := FALSE
+ else
+ UNIX_LIKE := TRUE
+ endif
+else
+ UNIX_LIKE := TRUE
+endif
+
+ifeq ($(UNIX_LIKE),FALSE)
SHELL := powershell.exe
.SHELLFLAGS := -NoProfile -NoLogo
MKDIR := @$$null = new-item -itemtype directory -force