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 <david@gibson.dropbear.id.au>
This commit is contained in:
David Gibson 2022-03-22 17:10:55 +11:00
parent 0e83c95fac
commit 86723b51ae

View File

@ -5,8 +5,6 @@
# #
PREFIX := /usr PREFIX := /usr
BIN_DIR := $(PREFIX)/bin
TEST_BIN_DIR := $(BIN_DIR)/virtcontainers/bin/test
HOOK_DIR := hook/mock HOOK_DIR := hook/mock
HOOK_BIN := hook HOOK_BIN := hook
MK_DIR := $(shell dirname $(realpath $(lastword $(MAKEFILE_LIST)))) MK_DIR := $(shell dirname $(realpath $(lastword $(MAKEFILE_LIST))))
@ -46,29 +44,6 @@ check-go-static:
check-go-test: check-go-test:
bash $(MK_DIR)/../../../ci/go-test.sh 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 # Clean
# #
@ -92,6 +67,4 @@ clean:
check \ check \
check-go-static \ check-go-static \
check-go-test \ check-go-test \
install \
uninstall \
clean clean