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:
parent
6797ee4b68
commit
551932697d
@ -61,5 +61,5 @@ $(EXE): $(OBJS)
|
||||
$(CXX) -o $(EXE) $(OBJS) $(CXXFLAGS) $(LIBS)
|
||||
|
||||
clean:
|
||||
rm $(EXE) $(OBJS)
|
||||
rm -f $(EXE) $(OBJS)
|
||||
|
||||
|
@ -62,4 +62,4 @@ $(EXE): $(OBJS)
|
||||
$(CXX) -o $(EXE) $(OBJS) $(CXXFLAGS) $(LIBS)
|
||||
|
||||
clean:
|
||||
rm $(EXE) $(OBJS)
|
||||
rm -f $(EXE) $(OBJS)
|
||||
|
Loading…
Reference in New Issue
Block a user