Failsafe clean rule

If the files to remove are not present the clean rule should not fail.
The clean rule is now idempotent.

Signed-off-by: Alan Ott <alan@signal11.us>
This commit is contained in:
Ludovic Rousseau 2010-10-10 10:10:54 +02:00 committed by Alan Ott
parent 93affcd658
commit e08ae577ca

View File

@ -27,6 +27,6 @@ $(CPPOBJS): %.o: %.cpp
$(CXX) $(CFLAGS) $< -o $@
clean:
rm *.o hidtest $(CPPOBJS)
rm -f *.o hidtest $(CPPOBJS)
.PHONY: clean