mirror of
https://github.com/kata-containers/kata-containers.git
synced 2026-07-02 07:02:16 +00:00
- Add agent-ctl to be a workspace member to simplify the dependency management. - Also add a test target as we've been running it in static-checks without it doing anything Assisted-by: IBM Bob Signed-off-by: stevenhorsman <steven@uk.ibm.com>
34 lines
659 B
Makefile
34 lines
659 B
Makefile
# Copyright (c) 2020 Intel Corporation
|
|
#
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
#
|
|
|
|
include ../../../utils.mk
|
|
|
|
.DEFAULT_GOAL := default
|
|
default: build
|
|
|
|
build:
|
|
@RUSTFLAGS="$(EXTRA_RUSTFLAGS) --deny warnings" cargo build -p kata-agent-ctl --target $(TRIPLE) --$(BUILD_TYPE)
|
|
|
|
static-checks-build:
|
|
@echo "INFO: static-checks-build do nothing.."
|
|
|
|
clean:
|
|
cargo clean
|
|
|
|
test:
|
|
@RUSTFLAGS="$(EXTRA_RUSTFLAGS) --deny warnings" cargo test -p kata-agent-ctl --target $(TRIPLE)
|
|
|
|
install:
|
|
@RUSTFLAGS="$(EXTRA_RUSTFLAGS) --deny warnings" cargo install --locked --target $(TRIPLE) --path .
|
|
|
|
check: standard_rust_check
|
|
|
|
.PHONY: \
|
|
build \
|
|
check \
|
|
clean \
|
|
install \
|
|
test
|