elvish/Makefile
2014-10-01 00:57:38 +02:00

26 lines
428 B
Makefile

EXE := elvish
PKGS := edit eval parse util sys store
PKG_PATHS := $(addprefix ./,$(PKGS)) # go tools want an explicit ./
PKG_COVERS := $(addprefix cover/,$(PKGS))
all: elvish test
elvish:
go get .
test:
go test $(PKG_PATHS)
cover/%: %
mkdir -p cover
go test -coverprofile=$@ ./$<
cover: $(PKG_COVERS)
z-%.go: %.go
go tool cgo -godefs $< > $@
pre-commit: edit/tty/z-types.go
.PHONY: all elvish test cover pre-commit