[CRIU] [PATCH] Makefile: test target should depend on crtools

Kir Kolyshkin kir at openvz.org
Thu Feb 16 17:27:49 EST 2012


Otherwise 'make test' fails on a clean tree because crtools is not built.

Side effect: if you have code modifications that are not yet compiled,
they will be compiled.

Signed-off-by: Kir Kolyshkin <kir at openvz.org>
---
 Makefile |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/Makefile b/Makefile
index adfc7ea..d5ffeca 100644
--- a/Makefile
+++ b/Makefile
@@ -133,11 +133,11 @@ $(DEPS_GEN): $(HEAD-BLOB-GEN) $(RHEAD-BLOB-GEN)
 %.d: %.c
 	$(Q) $(CC) -M -MT $(patsubst %.d,%.o,$@) $(CFLAGS) $< -o $@
 
-test-legacy:
+test-legacy: $(PROGRAM)
 	$(Q) $(MAKE) -C test/legacy all
 .PHONY: test-legacy
 
-zdtm:
+zdtm: $(PROGRAM)
 	$(Q) $(MAKE) -C test/zdtm all
 .PHONY: zdtm
 
-- 
1.7.7.6



More information about the CRIU mailing list