24 lines
286 B
Makefile
24 lines
286 B
Makefile
|
.DEFAULT_GOAL := all
|
||
|
|
||
|
# seems superfluous
|
||
|
#.PHONY: fmt vet build clean
|
||
|
|
||
|
fmt:
|
||
|
go fmt ./...
|
||
|
|
||
|
vet: fmt
|
||
|
go vet ./...
|
||
|
|
||
|
|
||
|
build: vet
|
||
|
mkdir -p bin
|
||
|
go build -o bin ./cmd/...
|
||
|
|
||
|
test: build
|
||
|
go test -count=1 -coverprofile=testout/coverage.out ${TESTFLAGS} ./...
|
||
|
|
||
|
clean:
|
||
|
rm -rf bin
|
||
|
|
||
|
all: build
|