.PHONY: clean build run format lint install remove

IMAGE = ~/.config/term.png

clean:
	cargo clean

build:
	cargo build

run:
	cargo run

format:
	cargo fmt

lint:
	cargo clippy --all-features -- -Dwarnings
	
install:
	cargo install --path .

uninstall:
	cargo remove --path .

precommit: format build lint

demo:
	punfetch -i $(IMAGE)
	@printf '%.s─' $$(seq 1 $$(tput cols)) && echo
	punfetch
	@printf '%.s─' $$(seq 1 $$(tput cols)) && echo
	punfetch --show-logo never
