mirror of
https://github.com/go-sylixos/elvish.git
synced 2024-12-12 17:27:50 +08:00
22 lines
317 B
Makefile
22 lines
317 B
Makefile
PKGS := $(filter-out main,$(shell go list -f '{{.Name}}' ./...))
|
|
PKG_COVERS := $(addprefix cover/,$(PKGS))
|
|
|
|
all: generate get test
|
|
|
|
get:
|
|
go get .
|
|
|
|
test:
|
|
go test ./...
|
|
|
|
cover/%: %
|
|
mkdir -p cover
|
|
go test -coverprofile=$@ ./$<
|
|
|
|
cover: $(PKG_COVERS)
|
|
|
|
generate:
|
|
go generate ./...
|
|
|
|
.PHONY: all get test cover generate
|