Fix Makefile

Signed-off-by: Icarus Sparry <icarus.w.sparry@intel.com>
This commit is contained in:
Icarus Sparry
2018-02-08 11:58:24 -08:00
committed by Matthew Johnson
parent 15938366ae
commit 80c33b4403
+5 -1
View File
@@ -51,10 +51,14 @@ check: gopath
# to coverprofile, so there will be no need to pass an individual package.
# At that time we can merge this target into check and run it against all
# packages every time.
.PHONY: checkcoverage
checkcoverage: gopath
test ${PKG}
ifeq (,${PKG})
$(error PKG is not set, try make PKG=swupd checkcoverage)
else
go test -cover ${GO_PACKAGE_PREFIX}/${PKG} -coverprofile=coverage.out
go tool cover -html=coverage.out
endif
.PHONY: lint
lint: gopath