diff --git a/Makefile b/Makefile index ae35e0b..8fcab06 100644 --- a/Makefile +++ b/Makefile @@ -1,16 +1,16 @@ -SOURCES = $(shell find . -name "*.go") +sources = $(shell find . -name "*.go") default: build -lib: $(SOURCES) +lib: $(sources) go build build: lib -check: $(SOURCES) build +check: $(sources) build go test -count 1 -.cover: $(SOURCES) build +.cover: $(sources) build go test -count 1 -coverprofile .cover cover: .cover @@ -19,7 +19,7 @@ cover: .cover showcover: .cover go tool cover -html .cover -fmt: $(SOURCES) +fmt: $(sources) go fmt clean: