gow
gow copied to clipboard
rm failing Makefile target
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
+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