redox/mk/depends.mk

25 lines
801 B
Makefile
Raw Normal View History

2020-06-07 05:29:53 +02:00
# Dependencies
2022-11-12 00:23:08 +01:00
# Don't check for Rust/Cargo if you will be using Podman
ifneq ($(PODMAN_BUILD),1)
2020-06-07 05:35:35 +02:00
ifeq ($(shell which rustup),)
$(error rustup not found, install from "https://rustup.rs/")
endif
ifeq ($(shell which nasm),)
$(error nasm not found, install from your package manager)
endif
2020-06-07 05:32:28 +02:00
CARGO_CONFIG_VERSION=0.1.1
ifeq ($(shell env -u RUSTUP_TOOLCHAIN cargo install --list | grep '^cargo-config v$(CARGO_CONFIG_VERSION):$$'),)
2020-06-07 05:32:28 +02:00
$(error cargo-config $(CARGO_CONFIG_VERSION) not found, run "cargo install --force --version $(CARGO_CONFIG_VERSION) cargo-config")
endif
2022-11-12 00:23:08 +01:00
2023-11-22 13:21:47 +01:00
JUST_VERSION=1.16.0
ifeq ($(shell env -u RUSTUP_TOOLCHAIN cargo install --list | grep '^just v$(JUST_VERSION):$$'),)
$(error just $(JUST_VERSION) not found, run "cargo install --force --version $(JUST_VERSION) just")
endif
2022-11-12 00:23:08 +01:00
endif