mirror of
https://github.com/aljazceru/kata-containers.git
synced 2026-02-20 14:04:30 +01:00
This has a similar intent as the go code, but not totally equal. For the go code we want to ensure that the vendored code is up-to-date, while here we want to ensure that `cargo vendor` actually works. We happened to release a few tarballs where `cargo vendor` didn't work and it causes some pain for downstream maintainers. Related: #2159 Signed-off-by: Fabiano Fidêncio <fidencio@redhat.com>
32 lines
359 B
Makefile
32 lines
359 B
Makefile
# Copyright (c) 2020 Intel Corporation
|
|
#
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
#
|
|
|
|
include ../../utils.mk
|
|
|
|
default: build
|
|
|
|
build:
|
|
@RUSTFLAGS="$(EXTRA_RUSTFLAGS) --deny warnings" cargo build --target $(TRIPLE) --$(BUILD_TYPE)
|
|
|
|
clean:
|
|
cargo clean
|
|
|
|
vendor:
|
|
cargo vendor
|
|
|
|
test:
|
|
|
|
install:
|
|
|
|
check:
|
|
|
|
.PHONY: \
|
|
build \
|
|
test \
|
|
check \
|
|
install \
|
|
clean \
|
|
vendor
|