Browse Source

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>
pull/7/head
Andrew Jeffery 3 years ago
parent
commit
afa5df1ffc
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      Makefile

+ 3
- 3
Makefile 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

Loading…
Cancel
Save