elvish/Makefile
2014-03-30 15:05:44 +08:00

29 lines
503 B
Makefile

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