diff options
| author | James O'Doherty <james@theodohertyfamily.com> | 2026-05-22 11:37:57 -0400 |
|---|---|---|
| committer | James O'Doherty <james@theodohertyfamily.com> | 2026-05-22 11:37:57 -0400 |
| commit | e5bbb969a15c569cf7d37634234a71783f628390 (patch) | |
| tree | 546f8282f14be7d3db1050f1f7586ad3c3758143 /Makefile | |
| parent | 079e4240534cbdc8751f1a127def20f2d1e58da6 (diff) | |
Fix PID lifecycle race and improve CLI routing for diagnostic commands
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -19,16 +19,16 @@ FUZZ_TIME ?= 30s all: $(BINARY) # Build the Go binary +# Use a temporary build file to ensure we don't leave a partially-built or stale binary $(BINARY): $(LAUNCHER_BIN) - CGO_ENABLED=$(CGO_ENABLED) go build $(GO_BUILD_FLAGS) -o $(BINARY) cmd/wg-wrap/main.go + CGO_ENABLED=$(CGO_ENABLED) go build $(GO_BUILD_FLAGS) -o $(BINARY).tmp cmd/wg-wrap/main.go && mv $(BINARY).tmp $(BINARY) # Build the embedded C launcher binary $(LAUNCHER_BIN): $(LAUNCHER_SRC) $(CC) $(CFLAGS) $(LAUNCHER_SRC) -o $(LAUNCHER_BIN) # Run tests -test: clean - $(MAKE) $(BINARY) +test: $(BINARY) @echo "Running tests with WG_WRAP_BIN=$(shell pwd)/$(BINARY)" WG_WRAP_BIN=$(shell pwd)/$(BINARY) go test -v -race ./... |
