# SPDX-License-Identifier: GPL-2.0-or-later | |
# SPDX-FileCopyrightText: 2022 Linaro Ltd. | |
# SPDX-FileCopyrightText: 2022 Bartosz Golaszewski <bartosz.golaszewski@linaro.org> | |
command = cargo build --release --lib | |
if WITH_TESTS | |
command += --tests | |
endif | |
if WITH_EXAMPLES | |
command += --examples | |
endif | |
all: | |
$(command) | |
clean: | |
cargo clean | |
EXTRA_DIST = Cargo.toml | |
SUBDIRS = examples src tests |