diff options
author | dundargoc <gocdundar@gmail.com> | 2025-02-22 16:46:31 +0100 |
---|---|---|
committer | dundargoc <33953936+dundargoc@users.noreply.github.com> | 2025-02-23 11:38:29 +0100 |
commit | 4a0ee22e77d169191e7163d1340b835145f4dac9 (patch) | |
tree | f4614117090157b2cd359bf617540c8796122344 | |
parent | d2cca606a1b67a7e9e093154449f35eaacab0532 (diff) | |
download | rneovim-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-- | Makefile | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -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 |