gow icon indicating copy to clipboard operation
gow copied to clipboard

rm failing Makefile target

Open zlalanne opened this issue 10 years ago • 2 comments

I have a Makefile target that deletes the object files. I run this when no object files are present and Make exits after the first rm. So it looks like rm is not using the "-f" flag correctly. This makes it hard to ship generic Makefile for Windows + Linux. Here is an example target of what I'm talking about.

clean:
    rm -f *.o
    rm -f *.obj
    rm -f *.out
    rm -f *.map

zlalanne avatar Mar 27 '14 20:03 zlalanne

+1

I'm using Make from Rtools as a workaround.

amarder avatar Jan 06 '16 17:01 amarder

+1 Is there a solution for this? I need to find a way of mapping rm -f (to ignore the file is missing). I run this nom command: rm -f ./*.zip

multiaki avatar Dec 04 '18 14:12 multiaki