VERSIONS = nightly beta stable 1.15.0 check: check_nightly check_beta check_stable build_1.15.0 build: $(addprefix build_, $(VERSIONS)) test: $(addprefix test_, $(VERSIONS)) clippy: clippy_nightly rustfmt: rustfmt_nightly rustup_%: rustup update $* check_%: rustup_% cargo +$* check --no-default-features cargo +$* check cargo +$* check --all-features build_%: rustup_% cargo +$* build --no-default-features cargo +$* build cargo +$* build --all-features test_%: rustup_% cargo +$* test --no-default-features cargo +$* test cargo +$* test --all-features clippy_%: rustup_% cargo_clippy_% cargo clean cargo +$* clippy --all-features -- -Dclippy rustfmt_%: rustup_% cargo_fmt_% cargo +$* fmt -- --write-mode=diff cargo_clippy_%: rustup_% cargo +nightly clippy 2>&1 >/dev/null || cargo +nightly install --force clippy cargo_fmt_%: rustup_% rustup component add --toolchain $* rustfmt-preview