-
- Notifications
You must be signed in to change notification settings - Fork 5.7k
Expand file tree
/
Copy pathMakefile
More file actions
23 lines (15 loc) · 371 Bytes
/
Makefile
File metadata and controls
23 lines (15 loc) · 371 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
.PHONY: all build test fmt clean run
all: build
build: fmt ./srs-proxy
./srs-proxy: cmd/proxy/*.go internal/**/*.go
go build -o 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 -f srs-proxy .go-formarted
run: fmt
go run ./cmd/proxy