-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
30 lines (21 loc) · 722 Bytes
/
Makefile
File metadata and controls
30 lines (21 loc) · 722 Bytes
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
30
.PHONY: install install-dev install-man install-hooks build test fmt clippy
PREFIX ?= /usr/local
install: install-hooks install-man
cargo install --path ./git-workon
install-dev: install-hooks install-man
cargo install --path ./git-workon --debug
install-man:
@cargo build -p git-workon
@mkdir -p "$(PREFIX)/share/man/man1"
@ln -sf "$$(find target/debug/build -path '*/git-workon-*/out/git-workon.1' -print -quit)" "$(PREFIX)/share/man/man1/git-workon.1"
@echo "Installed man page to $(PREFIX)/share/man/man1/git-workon.1"
install-hooks:
@./git-hooks/install.sh
build:
cargo build --workspace
test:
cargo test --workspace
fmt:
cargo fmt
clippy:
cargo clippy --all-targets --all-features -- -D warnings