diff --git a/test/zdtm/Makefile.inc b/test/zdtm/Makefile.inc index 12fa86e08..170f31632 100644 --- a/test/zdtm/Makefile.inc +++ b/test/zdtm/Makefile.inc @@ -98,6 +98,9 @@ dep: $(DEP) no-deps-targets := clean cleandep cleanout realclean groups.cleanout +ifeq ($(strip $(DEP)),) +$(error No DEP defined in sub-make) +endif ifeq ($(filter $(no-deps-targets), $(MAKECMDGOALS)),) -include $(wildcard $(DEP)) endif diff --git a/test/zdtm/static/Makefile b/test/zdtm/static/Makefile index 9b637d631..b232a8c80 100644 --- a/test/zdtm/static/Makefile +++ b/test/zdtm/static/Makefile @@ -217,8 +217,6 @@ TST_NOFILE := \ unlink_multiple_largefiles \ # jobctl00 \ -include ../Makefile.inc - ifneq ($(SRCARCH),arm) ifneq ($(COMPAT_TEST),y) TST_NOFILE += maps03 @@ -377,6 +375,8 @@ OUT = $(TST:%=%.out) STATE = $(TST_STATE:%=%.state) STATE_OUT = $(TST_STATE:%=%.out) +include ../Makefile.inc + all: $(TST) criu-rtc.so install: all .PHONY: all install