srs/Makefile
winlin 17502ff139 Move build output from root to bin/ directory following Go conventions
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-12 14:18:02 -04:00

25 lines
389 B
Makefile

.PHONY: all build test fmt clean run
all: build
build: fmt bin/srs-proxy
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