.DEFAULT_GOAL := build

.PHONY: build
build: target/doc
	cargo build

target/doc: Cargo.*
	cargo doc

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

.PHONY: test
test:
	cargo test

.PHONY: install
install:
	cargo build --release
	sudo install -D target/x86_64-unknown-linux-musl/release/byt \
		/usr/local/bin/byt
