mirror of
https://github.com/aljazceru/kata-containers.git
synced 2026-01-02 14:04:22 +01:00
Refine Makefile rules to better support the KATA ci env. Fixes: #3536 Signed-off-by: Liu Jiang <gerry@linux.alibaba.com>
34 lines
446 B
Makefile
34 lines
446 B
Makefile
# Copyright (c) 2020-2021 Intel Corporation
|
|
#
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
#
|
|
|
|
include ../../../utils.mk
|
|
|
|
.DEFAULT_GOAL := default
|
|
default: build
|
|
|
|
build:
|
|
@RUSTFLAGS="$(EXTRA_RUSTFLAGS) --deny warnings" cargo build --target $(TRIPLE) --$(BUILD_TYPE)
|
|
|
|
clean:
|
|
cargo clean
|
|
|
|
vendor:
|
|
cargo vendor
|
|
|
|
test:
|
|
@cargo test --all -- --nocapture
|
|
|
|
install:
|
|
|
|
check: standard_rust_check
|
|
|
|
.PHONY: \
|
|
build \
|
|
check \
|
|
clean \
|
|
install \
|
|
test \
|
|
vendor
|