From: Joost VandeVondele Date: Thu, 26 Apr 2018 22:07:56 +0000 (+0200) Subject: Fix 'make strip' for mingw. X-Git-Url: https://git.sesse.net/?p=stockfish;a=commitdiff_plain;h=3df8cabb8483db5d843c41c54aa79544f0a09457;ds=sidebyside Fix 'make strip' for mingw. Currently the make strip target is broken on mingw as the exe name is wrong (stockfish instead of stockfish.exe). Needs some testing by mingw users (both profile-build and strip, native and cross). No functional change. --- diff --git a/src/Makefile b/src/Makefile index 25436e25..34264e78 100644 --- a/src/Makefile +++ b/src/Makefile @@ -22,7 +22,11 @@ ### ========================================================================== ### Executable name +ifeq ($(COMP),mingw) +EXE = stockfish.exe +else EXE = stockfish +endif ### Installation dir definitions PREFIX = /usr/local @@ -437,7 +441,7 @@ clean: objclean profileclean # clean binaries and objects objclean: - @rm -f $(EXE) $(EXE).exe *.o ./syzygy/*.o + @rm -f $(EXE) *.o ./syzygy/*.o # clean auxiliary profiling files profileclean: