-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
31 lines (23 loc) · 726 Bytes
/
Copy pathMakefile
File metadata and controls
31 lines (23 loc) · 726 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
31
.PHONY: all build clean test debug install uninstall
all: build
build:
cargo build --workspace
clean:
cargo clean
test:
cargo test --workspace
debug:
@pkill codivd 2>/dev/null || true
RUST_LOG=codivd=debug cargo run -p codivd
cargo run -p codiv -- --debug
release:
cargo build --workspace --release
install: build
@mkdir -p $(HOME)/.local/bin
@ln -sf $(CURDIR)/target/debug/codiv $(HOME)/.local/bin/codiv
@ln -sf $(CURDIR)/target/debug/codivd $(HOME)/.local/bin/codivd
@echo "Installed symlinks to $(HOME)/.local/bin/{codiv,codivd}"
@echo "Make sure $(HOME)/.local/bin is in your PATH"
uninstall:
@rm -f $(HOME)/.local/bin/codiv $(HOME)/.local/bin/codivd
@echo "Removed symlinks from $(HOME)/.local/bin"