2018-12-31 13:23:50 +00:00
|
|
|
.PHONY: dev build profile bench test clean
|
2017-01-12 08:56:57 +00:00
|
|
|
|
|
|
|
all: dev
|
|
|
|
|
|
|
|
dev: build
|
|
|
|
./gopherproxy -bind 127.0.0.1:8000
|
|
|
|
|
|
|
|
build: clean
|
|
|
|
go build -o ./gopherproxy ./cmd/gopherproxy/main.go
|
|
|
|
|
2018-12-31 13:23:50 +00:00
|
|
|
profile:
|
|
|
|
@go test -cpuprofile cpu.prof -memprofile mem.prof -v -bench .
|
|
|
|
|
|
|
|
bench:
|
|
|
|
@go test -v -bench .
|
|
|
|
|
|
|
|
test:
|
|
|
|
@go test -v -race -cover -coverprofile=coverage.txt -covermode=atomic .
|
|
|
|
|
2017-01-12 08:56:57 +00:00
|
|
|
clean:
|
2018-12-31 13:23:50 +00:00
|
|
|
@git clean -f -d -X
|