[CRIU] [PATCH 1/2] make/test: drop dependencies dead code

Dmitry Safonov dsafonov at virtuozzo.com
Wed Jun 29 07:24:38 PDT 2016


static/transition tests are built with implicit rules.

Cc: Cyrill Gorcunov <gorcunov at openvz.org>
Signed-off-by: Dmitry Safonov <dsafonov at virtuozzo.com>
---
 test/zdtm/static/Makefile     | 8 --------
 test/zdtm/transition/Makefile | 8 --------
 2 files changed, 16 deletions(-)

diff --git a/test/zdtm/static/Makefile b/test/zdtm/static/Makefile
index 407a80f56400..a18435b98a7f 100644
--- a/test/zdtm/static/Makefile
+++ b/test/zdtm/static/Makefile
@@ -274,10 +274,6 @@ OUT	= $(TST:%=%.out)
 STATE	= $(TST_STATE:%=%.state)
 STATE_OUT	= $(TST_STATE:%=%.out)
 
-DEPEND.c = $(COMPILE.c) -MM -MP
-%.d:	%.c
-	$(DEPEND.c) $(OUTPUT_OPTION) $<
-
 all:	$(TST) criu-rtc.so
 install: all
 .PHONY: all install
@@ -425,7 +421,3 @@ criu-rtc.so: criu-rtc.c criu-rtc.pb-c.c
 	$(CC) -g -Wall -shared -nostartfiles criu-rtc.c criu-rtc.pb-c.c -o criu-rtc.so -iquote ../../../criu/include -fPIC $(USERCFLAGS)
 
 .PHONY:	force clean cleandep cleanout realclean start check_start stop wait_stop
-
-ifeq ($(filter-out no-deps-targets, $(MAKECMDGOALS)),)
--include $(DEP)
-endif
diff --git a/test/zdtm/transition/Makefile b/test/zdtm/transition/Makefile
index 2f3b6e81dd2e..a8dbc4d6352d 100644
--- a/test/zdtm/transition/Makefile
+++ b/test/zdtm/transition/Makefile
@@ -37,10 +37,6 @@ DEP	= $(SRC:%.c=%.d)
 PID	= $(TST:%=%.pid)
 OUT	= $(TST:%=%.out)
 
-DEPEND.c = $(COMPILE.c) -MM -MP
-%.d:	%.c
-	$(DEPEND.c) $(OUTPUT_OPTION) $<
-
 all:	$(TST)
 install: all
 .PHONY: all install
@@ -104,7 +100,3 @@ cleanout:
 realclean:	cleandep cleanout
 
 .PHONY:	force clean cleandep cleanout realclean start check_start stop wait_stop
-
-ifeq ($(filter-out no-deps-targets, $(MAKECMDGOALS)),)
--include $(DEP)
-endif
-- 
2.9.0



More information about the CRIU mailing list