diff --git a/Makefile b/Makefile index a65744a..04df308 100644 --- a/Makefile +++ b/Makefile @@ -31,18 +31,10 @@ install: check: go test -cover ${GO_PACKAGE_PREFIX}/... -# TODO: when Go 1.10 comes out we will have support for passing multiple packages -# 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 -ifeq (,${PKG}) - $(error PKG is not set, try make PKG=swupd checkcoverage) -else - go test -cover ${GO_PACKAGE_PREFIX}/${PKG} -coverprofile=coverage.out +checkcoverage: + go test -cover ${GO_PACKAGE_PREFIX}/... -coverprofile=coverage.out go tool cover -html=coverage.out -endif .PHONY: lint lint: