Explorar el Código

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 hace 9 años
padre
commit
551932697d
Se han modificado 2 ficheros con 2 adiciones y 2 borrados
  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)
 
 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)
 
 clean:
-	rm $(EXE) $(OBJS)
+	rm -f $(EXE) $(OBJS)