blob: 47220d775b8b5a3c8d503e212a229f392526780b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
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
|