Ensure make clean is idempotent.

Prior to this, `make clean` would fail if the project was not already
fully built, and a second invokation would always fail.
This commit is contained in:
Sam Hocevar
2018-03-01 15:45:23 +01:00
committed by omar
parent 6797ee4b68
commit 551932697d
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -61,5 +61,5 @@ $(EXE): $(OBJS)
$(CXX) -o $(EXE) $(OBJS) $(CXXFLAGS) $(LIBS)
clean:
rm $(EXE) $(OBJS)
rm -f $(EXE) $(OBJS)
+1 -1
View File
@@ -62,4 +62,4 @@ $(EXE): $(OBJS)
$(CXX) -o $(EXE) $(OBJS) $(CXXFLAGS) $(LIBS)
clean:
rm $(EXE) $(OBJS)
rm -f $(EXE) $(OBJS)