Explorar o 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 %!s(int64=9) %!d(string=hai) anos
pai
achega
551932697d
Modificáronse 2 ficheiros con 2 adicións e 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)