[CRIU] [PATCH 2/2] criu/Makefile: fix criu/arch/* rebuild
Kir Kolyshkin
kir at openvz.org
Sat Jan 7 15:52:50 PST 2017
Problem: if we do
touch criu/arch/x86/cpu.c
nothing is being rebuilt.
For detailed analisys, see the previous commit
("criu/Makefile: fix rebuilding criu/pie/pie.lib.a").
Note there are other targets in criu/Makefile where one
might want to add .FORCE to, but it's not needed as they
all depend on another target which itself is marked as .PHONY.
Signed-off-by: Kir Kolyshkin <kir at openvz.org>
---
criu/Makefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/criu/Makefile b/criu/Makefile
index fa6675e..87b3f84 100644
--- a/criu/Makefile
+++ b/criu/Makefile
@@ -44,7 +44,7 @@ include $(SRC_DIR)/criu/Makefile.packages
#
# Architecture dependent part.
ARCH-LIB := $(ARCH_DIR)/crtools.built-in.o
-$(ARCH-LIB):
+$(ARCH-LIB): .FORCE
$(Q) $(MAKE) $(build)=$(ARCH_DIR) all
#
--
2.9.3
More information about the CRIU
mailing list