[CRIU] [PATCH] build: Add dev-dep target to install build-required packages

Kirill Tkhai ktkhai at virtuozzo.com
Tue Oct 31 17:25:33 MSK 2017


This allows to obtain via a single command the requirements,
need to build and install criu.

Signed-off-by: Kirill Tkhai <ktkhai at virtuozzo.com>
---
 Makefile |    5 +++++
 1 file changed, 5 insertions(+)

diff --git a/Makefile b/Makefile
index 796cad874..61a6a89b7 100644
--- a/Makefile
+++ b/Makefile
@@ -347,6 +347,11 @@ TAGS_FILES_REGEXP := . -name '*.[hcS]' ! -path './.*' \( ! -path './test/*' -o -
 	docker run --rm -it --privileged criu-x86_64 ./test/zdtm.py run -a -x tcp6 -x tcpbuf6 -x static/rtc -x cgroup
 .PHONY: docker-test
 
+dev-dep:
+	$(Q) test ! -f /etc/redhat-release || \
+		yum install gcc protobuf-devel protobuf-c-devel libnet-devel libnl3-devel libcap-devel asciidoc xmlto
+.PHONY: dev-dep
+
 help:
 	@echo '    Targets:'
 	@echo '      all             - Build all [*] targets'



More information about the CRIU mailing list