1
0
textfmt/Makefile

26 lines
324 B
Makefile

SOURCES = $(shell find . -name "*.go")
default: build
build: $(SOURCES)
go build
fmt: $(SOURCES)
go fmt
check: $(SOURCES)
go test -count 1
.cover: $(SOURCES)
go test -count 1 -coverprofile .cover
cover: .cover
go tool cover -func .cover
showcover: .cover
go tool cover -html .cover
clean:
go clean
rm .cover