Browse Source

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.
Sam Hocevar 9 years ago
parent
commit
551932697d
2 changed files with 2 additions and 2 deletions
  1. 1 1
      examples/opengl2_example/Makefile
  2. 1 1
      examples/opengl3_example/Makefile

+ 1 - 1
examples/opengl2_example/Makefile

@@ -61,5 +61,5 @@ $(EXE): $(OBJS)
 	$(CXX) -o $(EXE) $(OBJS) $(CXXFLAGS) $(LIBS)
 	$(CXX) -o $(EXE) $(OBJS) $(CXXFLAGS) $(LIBS)
 
 
 clean:
 clean:
-	rm $(EXE) $(OBJS)
+	rm -f $(EXE) $(OBJS)
 
 

+ 1 - 1
examples/opengl3_example/Makefile

@@ -62,4 +62,4 @@ $(EXE): $(OBJS)
 	$(CXX) -o $(EXE) $(OBJS) $(CXXFLAGS) $(LIBS)
 	$(CXX) -o $(EXE) $(OBJS) $(CXXFLAGS) $(LIBS)
 
 
 clean:
 clean:
-	rm $(EXE) $(OBJS)
+	rm -f $(EXE) $(OBJS)