From: Ian Jackson Date: Wed, 30 Mar 2022 23:35:32 +0000 (+0100) Subject: Makefile: Support for controlling the Rust version X-Git-Tag: otter-1.0.0~65 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=7111437560c82d71a1022b34da45e38eb9e62fc7;p=otter.git Makefile: Support for controlling the Rust version Signed-off-by: Ian Jackson --- diff --git a/Makefile b/Makefile index 0fec0179..ed6826ad 100644 --- a/Makefile +++ b/Makefile @@ -37,7 +37,7 @@ BUNDLED_SOURCES += $(BUNDLED_SOURCES_FILES) #---------- programs and config variables ---------- -CARGO ?= cargo +CARGO ?= cargo $(RUST_VERSION) TARGET_DIR ?= target USVG_OPTIONS = "--sans-serif-family=DejaVu Sans" @@ -75,7 +75,7 @@ RUST_CLIPPY_CMD := clippy $(RUST_CLIPPY_OPTIONS) ifneq (,$(wildcard ../Cargo.nail)) NAILING_CARGO ?= nailing-cargo -CARGO = $(NAILING_CARGO) +CARGO = $(NAILING_CARGO) $(RUST_VERSION) BUILD_SUBDIR ?= ../Build TARGET_DIR = $(BUILD_SUBDIR)/$(notdir $(PWD))/target