[CRIU] [PATCH] zdtm: make -- Add -f key on clean* ops

Cyrill Gorcunov gorcunov at openvz.org
Sat Feb 2 03:32:35 EST 2013


Otherwise if no such files present I'm getting warnings.

Signed-off-by: Cyrill Gorcunov <gorcunov at openvz.org>
---
 test/zdtm/lib/Makefile             | 4 ++--
 test/zdtm/live/static/Makefile     | 8 ++++----
 test/zdtm/live/streaming/Makefile  | 8 ++++----
 test/zdtm/live/transition/Makefile | 8 ++++----
 4 files changed, 14 insertions(+), 14 deletions(-)

diff --git a/test/zdtm/lib/Makefile b/test/zdtm/lib/Makefile
index 350deb3..c90fcc4 100644
--- a/test/zdtm/lib/Makefile
+++ b/test/zdtm/lib/Makefile
@@ -18,10 +18,10 @@ install: all
 $(LIB):	$(LIB)(${LIBOBJ})
 
 clean:
-	$(RM) $(LIBOBJ) $(LIB) *~
+	$(RM) -f $(LIBOBJ) $(LIB) *~
 
 cleandep:
-	$(RM) $(LIBDEP)
+	$(RM) -f $(LIBDEP)
 
 realclean:	clean cleandep
 
diff --git a/test/zdtm/live/static/Makefile b/test/zdtm/live/static/Makefile
index 7a8bcad..b8b28e4 100644
--- a/test/zdtm/live/static/Makefile
+++ b/test/zdtm/live/static/Makefile
@@ -228,16 +228,16 @@ $(LIB):	force
 	$(MAKE) -C $(LIBDIR)
 
 clean:
-	$(RM) $(OBJ) $(TST) *~
+	$(RM) -f $(OBJ) $(TST) *~
 
 cleandep:	clean
-	$(RM) $(DEP)
+	$(RM) -f $(DEP)
 
 cleanout:
-	$(RM) -r *.pid *.out* *.test* *.state
+	$(RM) -f -r *.pid *.out* *.test* *.state
 
 %.cleanout: %
-	$(RM) -r $<.pid $<.out* $<.test* $<.*.test $<.state
+	$(RM) -f -r $<.pid $<.out* $<.test* $<.*.test $<.state
 
 realclean:	cleandep cleanout
 
diff --git a/test/zdtm/live/streaming/Makefile b/test/zdtm/live/streaming/Makefile
index dfc4919..51d543e 100644
--- a/test/zdtm/live/streaming/Makefile
+++ b/test/zdtm/live/streaming/Makefile
@@ -69,16 +69,16 @@ $(LIB):	force
 	$(MAKE) -C $(LIBDIR)
 
 clean:
-	$(RM) $(OBJ) $(TST) *~
+	$(RM) -f $(OBJ) $(TST) *~
 
 cleandep:	clean
-	$(RM) $(DEP)
+	$(RM) -f $(DEP)
 
 %.cleanout: %
-	$(RM) -r $<.pid $<.out* $<.test
+	$(RM) -f -r $<.pid $<.out* $<.test
 
 cleanout:
-	$(RM) *.pid *.out* *.test*
+	$(RM) -f *.pid *.out* *.test*
 
 realclean:	cleandep cleanout
 
diff --git a/test/zdtm/live/transition/Makefile b/test/zdtm/live/transition/Makefile
index 99db336..b864780 100644
--- a/test/zdtm/live/transition/Makefile
+++ b/test/zdtm/live/transition/Makefile
@@ -68,16 +68,16 @@ $(LIB):	force
 	$(MAKE) -C $(LIBDIR)
 
 clean:
-	$(RM) $(OBJ) $(TST) *~
+	$(RM) -f $(OBJ) $(TST) *~
 
 cleandep:	clean
-	$(RM) $(DEP)
+	$(RM) -f $(DEP)
 
 %.cleanout: %
-	$(RM) -r $<.pid $<.out* $<.test
+	$(RM) -f -r $<.pid $<.out* $<.test
 
 cleanout:
-	$(RM) *.pid *.out* *.test chew*
+	$(RM) -f *.pid *.out* *.test chew*
 
 realclean:	cleandep cleanout
 
-- 
1.8.1



More information about the CRIU mailing list