diff options
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 29 |
1 files changed, 20 insertions, 9 deletions
@@ -1,18 +1,29 @@ -build: test format +include config.mk + +build: + cargo fmt --all + cargo test cargo build run: build - ./target/debug/pfc + target/debug/pfc -doc: test format +doc: cargo doc --open -test: format - cargo test - -format: - cargo fmt --all +clean: + rm -r target install: cargo build --release - cp ./target/release/pfc ~/.local/bin/ + 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 |