It is not possible to invoke Windows system commands (e.g. del, move, etc.) using GNU Make. I am trying to create a make file that does not rely on a user who has additional tools installed (e.g. rm.exe from Cygwin).
When the following rule is executed, the del: command not found error is reported:
clean: del *.o
This is apparently because there is no such execuatable as "del". I also tried running it as an option for cmd , but with this it just seems like a new prompt opens:
clean: cmd /C del *.o
I am using Windows XP (5.1.2600) with GNU Make 3.79.1, which is included with MSys.
windows makefile
Tomlongridge
source share