From 551932697db596a7a476ca536d798f99a408a99d Mon Sep 17 00:00:00 2001 From: Sam Hocevar Date: Sat, 22 Oct 2016 13:02:58 +0200 Subject: [PATCH] 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. --- examples/opengl2_example/Makefile | 2 +- examples/opengl3_example/Makefile | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/opengl2_example/Makefile b/examples/opengl2_example/Makefile index b0ee3152..acff2506 100644 --- a/examples/opengl2_example/Makefile +++ b/examples/opengl2_example/Makefile @@ -61,5 +61,5 @@ $(EXE): $(OBJS) $(CXX) -o $(EXE) $(OBJS) $(CXXFLAGS) $(LIBS) clean: - rm $(EXE) $(OBJS) + rm -f $(EXE) $(OBJS) diff --git a/examples/opengl3_example/Makefile b/examples/opengl3_example/Makefile index 133c0a64..cfe58021 100644 --- a/examples/opengl3_example/Makefile +++ b/examples/opengl3_example/Makefile @@ -62,4 +62,4 @@ $(EXE): $(OBJS) $(CXX) -o $(EXE) $(OBJS) $(CXXFLAGS) $(LIBS) clean: - rm $(EXE) $(OBJS) + rm -f $(EXE) $(OBJS)