From e6a7091981cc4e97a54baec10bb99bb6df2c5239 Mon Sep 17 00:00:00 2001 From: "James O. D. Hunt" Date: Thu, 21 Mar 2019 11:27:03 +0000 Subject: [PATCH] build: Allow runtime to be built+installed without shim Add `install-runtime` and `install-netmon` targets. This allows the `install` target to be simplified and also allows the runtime to be built without having to build the `containerd-shim-v2` binary which is slow to build: ``` $ make runtime && sudo -E PATH=$PATH make install-runtime ``` Fixes #1402. Signed-off-by: James O. D. Hunt --- Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index fab2b976c..40138c070 100644 --- a/Makefile +++ b/Makefile @@ -534,11 +534,15 @@ check-go-static: coverage: $(QUIET_TEST).ci/go-test.sh html-coverage -install: default runtime install-scripts install-completions install-configs install-bin install-containerd-shim-v2 install-bin-libexec +install: default install-runtime install-containerd-shim-v2 install-netmon install-bin: $(BINLIST) $(QUIET_INST)$(foreach f,$(BINLIST),$(call INSTALL_EXEC,$f,$(BINDIR))) +install-runtime: runtime install-scripts install-completions install-configs install-bin + +install-netmon: install-bin-libexec + install-containerd-shim-v2: $(SHIMV2) $(QUIET_INST)$(call INSTALL_EXEC,$<,$(BINDIR))