.PHONY: default buildd buildr build check test clippy checkfmt lint run clean
.PHONY: install cic
ROOT_DIR := $(dir $(abspath $(firstword $(MAKEFILE_LIST))))
default: check
buildd:
cargo build
buildr:
cargo build --release
build: buildr
check:
cargo check --all
test:
cargo test --all
clippy:
cargo clippy --all -- -Dwarnings
checkfmt:
cargo fmt --all -- --check
lint: checkfmt clippy
run:
cargo run
clean:
cargo clean
install:
cargo install --path $(ROOT_DIR)
cic: test lint