No clue what happened in my system. All was working fine... until then.
Code:
C:\rnes>make clean
C:\MinGW\msys\1.0\bin\rm -f *.o *~ "#"*"#" RockNES.exe
/usr/bin/sh: C:MinGWmsys1.0binrm: command not found
makefile:93: recipe for target 'clean' failed
mingw32-make: *** [clean] Error 127
???
First result from Google for
msys rm backslash is
"Writing portable makefiles" by Sebastien Kramm, which recommends code like this:
Code:
ifdef SystemRoot
RM=del /F /Q
else
RM=rm -f
endif
Then, to delete something in the
clean target, use
$(RM) to select the correct delete command.
It was working perfectly fine until today. I have no clue what happened.
Did an update to Windows or MSYS run in the background between then and now? What does your Windows Update history show, and what is the latest file modification date for MSYS files?
Last Windows Update on May 9th 2017.
I reinstalled MinGW + MSYS, but got the same error.
Looks like it's related with sh.exe.
EDIT: that's strange. I reinstalled my MinGW, Allegro library and ZLIB... and still the same error, using the exact same makefile. If I type rm -f *.o, it has no error.
EDIT 2: solved. Looks like MinGW does NOT like MSYS in my PATH (sh.exe).
For some reason, Dev-Cpp is conflicting with the PATH setting X command prompt window. As I said, all was working fine... until then. If I add "C:\MinGW\msys\1.0\bin" to the PATH, Dev-Cpp works, but NOT gcc on command prompt. On other side, if I remove that from the PATH, I can compile my emulator in a command prompt window, but Dev-Cpp now gives the error (see 1st post).
The reason is sh.exe at C:\MinGW\msys\1.0\bin.