add Makefile

This commit is contained in:
2026-03-20 02:57:54 +09:00
parent 6c9618e54c
commit 1a134f448b

17
Makefile Normal file
View File

@@ -0,0 +1,17 @@
PREFIX ?= $(HOME)/.local/bin
all:
cargo build --release
install: all
mkdir -p $(PREFIX)
install -m 755 target/release/bw-agent $(PREFIX)/bw-agent
install -m 755 target/release/bw-proxy $(PREFIX)/bw-proxy
uninstall:
rm -f $(PREFIX)/bw-agent $(PREFIX)/bw-proxy
clean:
cargo clean
.PHONY: all install uninstall clean