"make: rm: command not found" error tutorial

Hi,

I am working my way through James Lynch’s ARM on eclipse tutorial. (It is excellent by the way.)

For some reason, the makefile processing gives an error:

“make: rm: command not found.”

I’ve dug a little deeper and it seems that is I remove the leading “-” in front of “rm” in the clean: section the project will build.

Does not work…

clean:

-rm crt.lst main.lst crt.o main.o main.out main.hex main.map main.dmp

Works…

clean:

rm crt.lst main.lst crt.o main.o main.out main.hex main.map main.dmp

Is there a typo in the tutorial or is there a problem with my cygwin setup?

I reinstalled cygwin and now its working with the “-rm”… strange.