926153ac
add server build and install targets to Makefile
a73x 2026-03-31 13:27
diff --git a/Makefile b/Makefile index b614f8f..6e4fa19 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,8 @@ CARGO := cargo PROFILE ?= debug BIN := git-collab PREFIX ?= /usr/local CARGO := cargo PROFILE ?= debug BIN := git-collab SERVER_BIN := git-collab-server PREFIX ?= /usr/local # --- Building blocks --- .PHONY: fmt check clippy test build install clean @@ -32,9 +33,10 @@ ci: lint test build install: PROFILE := release install: build install-man install -Dm755 target/release/$(BIN) $(PREFIX)/bin/$(BIN) install -Dm755 target/release/$(SERVER_BIN) $(PREFIX)/bin/$(SERVER_BIN) uninstall: rm -f $(PREFIX)/bin/$(BIN) rm -f $(PREFIX)/bin/$(BIN) $(PREFIX)/bin/$(SERVER_BIN) clean: clean-man $(CARGO) clean @@ -56,11 +58,14 @@ clean-man: rm -rf man/ # --- Dev helpers --- .PHONY: run dev dashboard .PHONY: run serve dev dashboard run: $(CARGO) run -- $(ARGS) serve: $(CARGO) run --bin $(SERVER_BIN) -- $(ARGS) dev: fmt $(CARGO) run -- $(ARGS)