mirror of
https://github.com/ossrs/srs.git
synced 2025-02-15 04:42:04 +00:00
24 lines
278 B
Makefile
24 lines
278 B
Makefile
|
.PHONY: all build test fmt clean run
|
||
|
|
||
|
all: build
|
||
|
|
||
|
build: fmt ./srs-proxy
|
||
|
|
||
|
./srs-proxy: *.go
|
||
|
go build -o srs-proxy .
|
||
|
|
||
|
test:
|
||
|
go test ./...
|
||
|
|
||
|
fmt: ./.go-formarted
|
||
|
|
||
|
./.go-formarted: *.go
|
||
|
touch .go-formarted
|
||
|
go fmt ./...
|
||
|
|
||
|
clean:
|
||
|
rm -f srs-proxy .go-formarted
|
||
|
|
||
|
run: fmt
|
||
|
go run .
|