.DEFAULT_GOAL := build

.PHONY: build
build:
	cargo build

.PHONY: release
release:
	cargo build --release

.PHONY: doc
doc:
	cargo doc

.PHONY: install
install: release
	sudo install -Dm755 target/release/copy /usr/local/bin

.PHONY: version
version:
	verto

.PHONY: upgrade
upgrade:
	cargo upgrade --incompatible

.PHONY: lint
lint:
	cargo +nightly clippy -- -Wclippy::pedantic
