a73x

b426e1d9

build: make install — user binaries to ~/.local/bin

a73x   2026-08-18 18:20

Commit message
build: make install — user binaries to ~/.local/bin

Only muxd, mux, muxa, muxweb: the rest of zig-out/bin are test
fixtures that have no business on PATH.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

Makefile
Old New
@@ -2,7 +2,7 @@
2 # default zig is 0.17-dev. Override with ZIG=... if yours lives elsewhere. 2 # default zig is 0.17-dev. Override with ZIG=... if yours lives elsewhere.
3 ZIG ?= $(HOME)/Downloads/zig-x86_64-linux-0.15.2/zig 3 ZIG ?= $(HOME)/Downloads/zig-x86_64-linux-0.15.2/zig
4 4
5 .PHONY: build test e2e soak bench agent deps clean clean-deps xversion xversion-build 5 .PHONY: build test e2e soak bench agent deps clean clean-deps xversion xversion-build install
6 6
7 # The QUIC stack (deps/quic) is built on demand by build.zig, so no target 7 # The QUIC stack (deps/quic) is built on demand by build.zig, so no target
8 # here needs to depend on this one. It exists to make the one-time cost 8 # here needs to depend on this one. It exists to make the one-time cost
@@ -16,6 +16,14 @@ deps:
16 build: 16 build:
17 $(ZIG) build 17 $(ZIG) build
18 18
19 # Only the four user-facing binaries: everything else in zig-out/bin
20 # (ptyclient, wsclient, rawmode, ...) is a test fixture that would shadow
21 # nothing useful on PATH.
22 BINDIR ?= $(HOME)/.local/bin
23 install: build
24 install -d $(BINDIR)
25 install -m755 zig-out/bin/muxd zig-out/bin/mux zig-out/bin/muxa zig-out/bin/muxweb $(BINDIR)/
26
19 test: 27 test:
20 $(ZIG) build test 28 $(ZIG) build test
21 29