elvish/Makefile

22 lines
308 B
Makefile
Raw Normal View History

2016-02-07 11:36:32 +08:00
PKGS := $(filter-out main,$(shell go list -f '{{.Name}}' ./...))
2014-09-28 17:22:28 +08:00
PKG_COVERS := $(addprefix cover/,$(PKGS))
2013-09-18 16:58:51 +08:00
all: get test
2015-02-27 09:29:40 +08:00
get:
go get .
2013-09-18 16:58:51 +08:00
test:
go test ./...
2014-09-25 05:56:12 +08:00
cover/%: %
mkdir -p cover
go test -coverprofile=$@ ./$<
2014-09-28 17:22:28 +08:00
cover: $(PKG_COVERS)
2015-02-27 09:29:40 +08:00
generate:
go generate ./...
2013-09-18 16:58:51 +08:00
2015-02-27 09:29:40 +08:00
.PHONY: all get test cover generate