[CRIU] [PATCH 7/7] crit: add install-crit target to Makefile

Ruslan Kuprieiev kupruser at gmail.com
Tue Oct 28 21:02:48 PDT 2014


install-crit uses scripts/crit-setup.py install --prefix=$(DESTDIR) to act
the way the install target expects it too.

Signed-off-by: Ruslan Kuprieiev <kupruser at gmail.com>
---
 Makefile | 10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)

diff --git a/Makefile b/Makefile
index 3a20b41..998f90b 100644
--- a/Makefile
+++ b/Makefile
@@ -146,7 +146,7 @@ ifeq ($(GCOV),1)
 %.o $(PROGRAM): override CFLAGS += --coverage
 endif
 
-all: config pie $(VERSION_HEADER) $(CRIU-LIB)
+all: config pie $(VERSION_HEADER) $(CRIU-LIB) crit
 	$(Q) $(MAKE) $(PROGRAM)
 
 protobuf/%::
@@ -255,7 +255,7 @@ criu-$(CRTOOLSVERSION).tar.bz2:
 		v$(CRTOOLSVERSION) | bzip2 > $@
 .PHONY: dist tar
 
-install: $(PROGRAM) $(CRIU-LIB) install-man
+install: $(PROGRAM) $(CRIU-LIB) install-man install-crit
 	$(E) "  INSTALL " $(PROGRAM)
 	$(Q) mkdir -p $(DESTDIR)$(SBINDIR)
 	$(Q) install -m 755 $(PROGRAM) $(DESTDIR)$(SBINDIR)
@@ -283,7 +283,11 @@ install: $(PROGRAM) $(CRIU-LIB) install-man
 install-man:
 	$(Q) $(MAKE) -C Documentation install
 
-.PHONY: install install-man
+install-crit: crit
+	$(E) "  INSTALL crit"
+	$(Q) python scripts/crit-setup.py install --prefix=$(DESTDIR)
+
+.PHONY: install install-man install-crit
 
 help:
 	@echo '    Targets:'
-- 
1.9.3



More information about the CRIU mailing list