srs/Makefile
winlin f83605526e Proxy: Wire up counterfeiter for interface fake generation
Add `make generate` plus a counterfeiter tool dependency so test doubles
for proxy interfaces can be produced consistently. Introduce the env
package's //go:generate directive and its generated envfakes, and
document the regenerate step in the srs-develop skill.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-18 16:39:56 -04:00

28 lines
428 B
Makefile

.PHONY: all build test fmt clean run generate
all: build
build: fmt bin/srs-proxy
generate:
go generate ./...
bin/srs-proxy: cmd/proxy/*.go internal/**/*.go
@mkdir -p bin
go build -o bin/srs-proxy ./cmd/proxy
test:
go test ./...
fmt: ./.go-formarted
./.go-formarted: cmd/proxy/*.go internal/**/*.go
touch .go-formarted
go fmt ./cmd/... ./internal/...
clean:
rm -rf bin .go-formarted
run: fmt
go run ./cmd/proxy