Fix make clean failing when make finds sh.exe in the PATH on windows
Raylib's Makefile uses the cmd.exe builtin command del to delete files for the make clean target, making the bad assumption that the shell used to execute build rules is always cmd.exe.
This commit is contained in:
parent
96452637d9
commit
23c35a1ea3
|
|
@ -113,6 +113,12 @@ ifeq ($(PLATFORM),PLATFORM_DESKTOP)
|
||||||
# ifeq ($(UNAME),Msys) -> Windows
|
# ifeq ($(UNAME),Msys) -> Windows
|
||||||
ifeq ($(OS),Windows_NT)
|
ifeq ($(OS),Windows_NT)
|
||||||
PLATFORM_OS = WINDOWS
|
PLATFORM_OS = WINDOWS
|
||||||
|
# Make always tries to run build rules under sh.exe by default
|
||||||
|
# so targets like "make clean" will fail if sh.exe is present in PATH
|
||||||
|
# this ensures under Windows, build rules are executed using cmd.exe
|
||||||
|
# see README.W32 of GNU Make for more details
|
||||||
|
# WARNING: -e flag of make will override this
|
||||||
|
SHELL = cmd
|
||||||
else
|
else
|
||||||
UNAMEOS = $(shell uname)
|
UNAMEOS = $(shell uname)
|
||||||
ifeq ($(UNAMEOS),Linux)
|
ifeq ($(UNAMEOS),Linux)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user