[CRIU] [PATCH 1/2] build: Fix criu executable building

Cyrill Gorcunov gorcunov at openvz.org
Sat Feb 20 01:38:52 PST 2016


Otherwise linking may be executed twice
as a forced target.

Signed-off-by: Cyrill Gorcunov <gorcunov at openvz.org>
---
 Makefile | 12 +++++-------
 1 file changed, 5 insertions(+), 7 deletions(-)

diff --git a/Makefile b/Makefile
index c76217991575..f48c4bd5f4f9 100644
--- a/Makefile
+++ b/Makefile
@@ -116,22 +116,20 @@ PHONY += images
 # the nmk so we can reuse it there.
 criu/%: images/built-in.o
 	$(Q) $(MAKE) -C criu $@
-criu: images/built-in.o
-	$(Q) $(MAKE) -C criu all
-criu/criu: criu
-PHONY += criu
+criu/criu: images/built-in.o
+	$(Q) $(MAKE) -C criu criu
 
 #
 # Libraries next once criu it ready
 # (we might generate headers and such
 # when building criu itself).
-lib/%: criu
+lib/%: criu/criu
 	$(Q) $(MAKE) -C lib $@
-lib: criu
+lib: criu/criu
 	$(Q) $(MAKE) -C lib all
 PHONY += lib
 
-all: criu lib
+all: criu/criu lib
 PHONY += all
 
 clean-built:
-- 
2.5.0



More information about the CRIU mailing list