mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
Refine makefile.
This commit is contained in:
parent
2e7f2c2d78
commit
7b20e58272
3 changed files with 11 additions and 4 deletions
3
proxy/.gitignore
vendored
3
proxy/.gitignore
vendored
|
@ -1,3 +1,4 @@
|
|||
.idea
|
||||
srs-proxy
|
||||
.env
|
||||
.env
|
||||
.go-formarted
|
|
@ -2,17 +2,22 @@
|
|||
|
||||
all: build
|
||||
|
||||
build: fmt
|
||||
build: fmt ./srs-proxy
|
||||
|
||||
./srs-proxy: *.go
|
||||
go build -o srs-proxy .
|
||||
|
||||
test:
|
||||
go test ./...
|
||||
|
||||
fmt:
|
||||
fmt: ./.go-formarted
|
||||
|
||||
./.go-formarted: *.go
|
||||
touch .go-formarted
|
||||
go fmt ./...
|
||||
|
||||
clean:
|
||||
rm -f srs-proxy
|
||||
rm -f srs-proxy .go-formarted
|
||||
|
||||
run: fmt
|
||||
go run .
|
||||
|
|
|
@ -30,6 +30,7 @@ func loadEnvFile(ctx context.Context) error {
|
|||
return nil
|
||||
}
|
||||
|
||||
// buildDefaultEnvironmentVariables setups the default environment variables.
|
||||
func buildDefaultEnvironmentVariables(ctx context.Context) {
|
||||
// Whether enable the Go pprof.
|
||||
setEnvDefault("GO_PPROF", "")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue