PREFIX ?= /usr/local BIN_DEST ?= ${PREFIX}/bin MAN_DEST ?= ${PREFIX}/man CARGO ?= cargo SCDOC ?= scdoc RM ?= rm default: @${CARGO} build release: @${CARGO} build --release --locked --all-features --target-dir=target manpage: @${SCDOC} < man/rs.1.scd > man/rs.1 install: release manpage install -Dm 755 -t "${BIN_DEST}" target/release/rs install -Dm 555 -t "${MAN_DEST}" man/rs.1 run: @${CARGO} run fmt: @${CARGO} fmt clean: @${RM} man/rs.1 @${CARGO} clean