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

Submitted by Dmitry Safonov on June 29, 2016, 2:24 p.m.

Details

Message ID 20160629142439.29808-2-dsafonov@virtuozzo.com
State Accepted
Series "test's Makefile genocide"
Commit 138e0f0e066ea8e312747a0ec6023195e5c92a0c
Headers show

Commit Message

Dmitry Safonov June 29, 2016, 2:24 p.m.
static/transition tests are built with implicit rules.

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

Patch hide | download patch | download mbox

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