blob: c6695e293c682314716fd5f883664b78c3948c39 (
plain) (
blame)
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
27
28
29
|
include config.mk
build:
cargo fmt --all
cargo test
cargo build
run: build
target/debug/pfc
doc:
cargo doc --open
clean:
rm -r target
install:
cargo build --release
cp target/release/pfc ${DESTDIR}${PREFIX}/bin
chmod 755 ${DESTDIR}${PREFIX}/bin/pfc
mkdir -p ${DESTDIR}${MANPREFIX}/man1
sed "s/VERSION/${VERSION}/g" < pfc.1 > ${DESTDIR}${MANPREFIX}/man1/pfc.1
chmod 644 ${DESTDIR}${MANPREFIX}/man1/pfc.1
uninstall:
rm -f ${DESTDIR}${PREFIX}/bin/pfc\
${DESTDIR}${MANPREFIX}/man1/pfc.1
.PHONY: build run doc clean install uninstall
|