mirror of
https://github.com/aljazceru/kata-containers.git
synced 2026-01-01 21:44:22 +01:00
Add makefile to document possible options to run. e.g Default: Create a kata tarball, it will build assets concurrently. ``` $ make ``` Create a tarball build for cloud-hypervisor. ``` $ make cloud-hypervisor ``` Signed-off-by: Carlos Venegas <jos.c.venegas.munoz@intel.com>
43 lines
877 B
Makefile
43 lines
877 B
Makefile
# Copyright (c) 2020 Intel Corporation
|
|
#
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
#
|
|
|
|
# List of available components
|
|
COMPONENTS =
|
|
|
|
COMPONENTS += agent
|
|
COMPONENTS += runtime
|
|
COMPONENTS += trace-forwarder
|
|
|
|
# List of available tools
|
|
TOOLS =
|
|
|
|
TOOLS += agent-ctl
|
|
|
|
STANDARD_TARGETS = build check clean install test vendor
|
|
|
|
include utils.mk
|
|
|
|
all: build
|
|
|
|
# Create the rules
|
|
$(eval $(call create_all_rules,$(COMPONENTS),$(TOOLS),$(STANDARD_TARGETS)))
|
|
|
|
# Non-standard rules
|
|
|
|
generate-protocols:
|
|
make -C src/agent generate-protocols
|
|
|
|
# Some static checks rely on generated source files of components.
|
|
static-checks: build
|
|
bash ci/static-checks.sh
|
|
|
|
binary-tarball:
|
|
make -f ./tools/packaging/kata-deploy/local-build/Makefile
|
|
|
|
install-binary-tarball:
|
|
make -f ./tools/packaging/kata-deploy/local-build/Makefile install
|
|
|
|
.PHONY: all default static-checks binary-tarball install-binary-tarball
|