2
0

Makefile 278 B

1234567891011121314151617181920212223
  1. .PHONY: all build test fmt clean run
  2. all: build
  3. build: fmt ./srs-proxy
  4. ./srs-proxy: *.go
  5. go build -o srs-proxy .
  6. test:
  7. go test ./...
  8. fmt: ./.go-formarted
  9. ./.go-formarted: *.go
  10. touch .go-formarted
  11. go fmt ./...
  12. clean:
  13. rm -f srs-proxy .go-formarted
  14. run: fmt
  15. go run .