gopherproxy/Makefile

22 lines
381 B
Makefile
Raw Normal View History

.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
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:
@git clean -f -d -X