diff options
| author | Peter0x44 <[email protected]> | 2022-02-10 19:52:34 +0000 |
|---|---|---|
| committer | GitHub <[email protected]> | 2022-02-10 20:52:34 +0100 |
| commit | 81cced4d83a388c387695a8a5477ff35e613e527 (patch) | |
| tree | 793b355d1f40d2040f34d64a970a47fe7000b662 /src/Makefile | |
| parent | 30797d32010247257c38f7849ae8fd67193580cf (diff) | |
| download | raylib-81cced4d83a388c387695a8a5477ff35e613e527.tar.gz raylib-81cced4d83a388c387695a8a5477ff35e613e527.zip | |
Fix make clean target failing when shell is not cmd (#2338)
GNU make on Windows first tries to find sh.exe on the path,
and will execute build rules using it if it is present.
The make clean target uses the builtin cmd.exe command del, which
won't work under sh.exe
The reason this is not done for the entire Makefile is because it would
break cross-compilation of raylib.
Diffstat (limited to 'src/Makefile')
| -rw-r--r-- | src/Makefile | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/Makefile b/src/Makefile index ddac896c..3048f98a 100644 --- a/src/Makefile +++ b/src/Makefile @@ -731,6 +731,12 @@ endif # Clean everything clean: ifeq ($(PLATFORM_OS),WINDOWS) + # Make always tries to run build rules under sh.exe by default + # So if sh.exe is present in the PATH on windows, the del commands will fail + # see README.W32 of GNU Make for more details + # It is not specified earlier in the Makefile, because then cross-compilation + # will also fail. + SHELL = cmd del *.o /s cd $(RAYLIB_RELEASE_PATH) del lib$(RAYLIB_LIB_NAME).a /s |
