gopher/Makefile

29 lines
450 B
Makefile
Raw Normal View History

2018-12-30 13:29:30 +00:00
.PHONY: build install profile bench test clean
all: build
build:
@go build -o client ./examples/client
@go build -o fileserver ./examples/fileserver
@go build -o hello ./examples/hello
install:
@go install ./...
profile:
@go test -cpuprofile cpu.prof -memprofile mem.prof -v -bench . .
bench:
@go test -bench . .
test:
@go test \
-race \
-cover \
-coverprofile=coverage.txt \
-covermode=atomic \
.
clean:
@git clean -f -d -X