punktf 0.1.0

A cross-platform multi-target dotfiles manager
Documentation
.PHONY: default buildd buildr build check test clippy checkfmt lint run clean
.PHONY: install cic

# Is set to the directory which contains the Makefile regardless from where
# the make command is called.
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)

# utility
# can i commit
cic: test lint