mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-07-03 02:26:37 +00:00
build: Improve quiet install
Move the quiet prefix from the `INSTALL_EXEC` recipe and use it at the call sites. This makes the code robust when calling the recipe in a `$(foreach ...)` loop. Signed-off-by: James O. D. Hunt <james.o.hunt@intel.com>
This commit is contained in:
parent
4fda493384
commit
933b16fc61
12
Makefile
12
Makefile
@ -1,5 +1,5 @@
|
|||||||
#
|
#
|
||||||
# Copyright (c) 2018 Intel Corporation
|
# Copyright (c) 2018-2019 Intel Corporation
|
||||||
#
|
#
|
||||||
# SPDX-License-Identifier: Apache-2.0
|
# SPDX-License-Identifier: Apache-2.0
|
||||||
#
|
#
|
||||||
@ -338,7 +338,7 @@ export GENERATED_CODE
|
|||||||
# $1 : file to install
|
# $1 : file to install
|
||||||
# $2 : directory path where file will be installed
|
# $2 : directory path where file will be installed
|
||||||
define INSTALL_EXEC
|
define INSTALL_EXEC
|
||||||
$(QUIET_INST)install -D $1 $(DESTDIR)$2/$(notdir $1);
|
install -D $1 $(DESTDIR)$2/$(notdir $1);
|
||||||
endef
|
endef
|
||||||
|
|
||||||
GENERATED_CONFIG = $(CLI_DIR)/config-generated.go
|
GENERATED_CONFIG = $(CLI_DIR)/config-generated.go
|
||||||
@ -436,19 +436,19 @@ coverage:
|
|||||||
install: default runtime install-scripts install-completions install-config install-bin install-containerd-shim-v2 install-bin-libexec
|
install: default runtime install-scripts install-completions install-config install-bin install-containerd-shim-v2 install-bin-libexec
|
||||||
|
|
||||||
install-bin: $(BINLIST)
|
install-bin: $(BINLIST)
|
||||||
$(foreach f,$(BINLIST),$(call INSTALL_EXEC,$f,$(BINDIR)))
|
$(QUIET_INST)$(foreach f,$(BINLIST),$(call INSTALL_EXEC,$f,$(BINDIR)))
|
||||||
|
|
||||||
install-containerd-shim-v2: $(SHIMV2)
|
install-containerd-shim-v2: $(SHIMV2)
|
||||||
$(call INSTALL_EXEC,$<,$(BINDIR))
|
$(QUIET_INST)$(call INSTALL_EXEC,$<,$(BINDIR))
|
||||||
|
|
||||||
install-bin-libexec: $(BINLIBEXECLIST)
|
install-bin-libexec: $(BINLIBEXECLIST)
|
||||||
$(foreach f,$(BINLIBEXECLIST),$(call INSTALL_EXEC,$f,$(PKGLIBEXECDIR)))
|
$(QUIET_INST)$(foreach f,$(BINLIBEXECLIST),$(call INSTALL_EXEC,$f,$(PKGLIBEXECDIR)))
|
||||||
|
|
||||||
install-config: $(CONFIG)
|
install-config: $(CONFIG)
|
||||||
$(QUIET_INST)install --mode 0644 -D $(CONFIG) $(DESTDIR)/$(CONFIG_PATH)
|
$(QUIET_INST)install --mode 0644 -D $(CONFIG) $(DESTDIR)/$(CONFIG_PATH)
|
||||||
|
|
||||||
install-scripts: $(SCRIPTS)
|
install-scripts: $(SCRIPTS)
|
||||||
$(foreach f,$(SCRIPTS),$(call INSTALL_EXEC,$f,$(SCRIPTS_DIR)))
|
$(QUIET_INST)$(foreach f,$(SCRIPTS),$(call INSTALL_EXEC,$f,$(SCRIPTS_DIR)))
|
||||||
|
|
||||||
install-completions:
|
install-completions:
|
||||||
$(QUIET_INST)install --mode 0644 -D $(BASH_COMPLETIONS) $(DESTDIR)/$(BASH_COMPLETIONSDIR)/$(notdir $(BASH_COMPLETIONS));
|
$(QUIET_INST)install --mode 0644 -D $(BASH_COMPLETIONS) $(DESTDIR)/$(BASH_COMPLETIONSDIR)/$(notdir $(BASH_COMPLETIONS));
|
||||||
|
Loading…
Reference in New Issue
Block a user