From 86723b51ae131364e4efaa4d8818a6bac26a9dac Mon Sep 17 00:00:00 2001 From: David Gibson Date: Tue, 22 Mar 2022 17:10:55 +1100 Subject: [PATCH] virtcontainers: Remove unused install/uninstall targets We've now removed the need to install the mock hook binary for unit tests. However, it turns out that managing that was the *only* thing that the install and uninstall targets in the virtcontainers Makefile handled. So, remove them. Signed-off-by: David Gibson --- src/runtime/virtcontainers/Makefile | 27 --------------------------- 1 file changed, 27 deletions(-) diff --git a/src/runtime/virtcontainers/Makefile b/src/runtime/virtcontainers/Makefile index 1665577c86..a255741b0b 100644 --- a/src/runtime/virtcontainers/Makefile +++ b/src/runtime/virtcontainers/Makefile @@ -5,8 +5,6 @@ # PREFIX := /usr -BIN_DIR := $(PREFIX)/bin -TEST_BIN_DIR := $(BIN_DIR)/virtcontainers/bin/test HOOK_DIR := hook/mock HOOK_BIN := hook MK_DIR := $(shell dirname $(realpath $(lastword $(MAKEFILE_LIST)))) @@ -46,29 +44,6 @@ check-go-static: check-go-test: bash $(MK_DIR)/../../../ci/go-test.sh -# -# Install -# - -define INSTALL_TEST_EXEC - install -D $1 $(TEST_BIN_DIR)/ || exit 1; -endef - -install: - @mkdir -p $(TEST_BIN_DIR) - $(call INSTALL_TEST_EXEC,$(HOOK_DIR)/$(HOOK_BIN)) - -# -# Uninstall -# - -define UNINSTALL_TEST_EXEC - rm -f $(call FILE_SAFE_TO_REMOVE,$(TEST_BIN_DIR)/$1) || exit 1; -endef - -uninstall: - $(call UNINSTALL_TEST_EXEC,$(HOOK_BIN)) - # # Clean # @@ -92,6 +67,4 @@ clean: check \ check-go-static \ check-go-test \ - install \ - uninstall \ clean