Makefile: Use $(RM), silencing errors on missing files

$(RM) includes the -f flag, so the clean target now succeeds when files
to remove don't exist. The post-condition of clean is that compilation
artifacts are not present; this is trivially satisfied if they never
existed.

Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
This commit is contained in:
Andrew Jeffery 2017-10-22 08:04:36 +10:30
parent 88c9d3513b
commit afa5df1ffc

View File

@ -27,6 +27,6 @@ example4: example4.o genann.o
clean:
rm *.o
rm *.exe
rm persist.txt
$(RM) *.o
$(RM) *.exe
$(RM) persist.txt