elvish/Makefile
Cheer Xiao 900d814edb Move util/deepprint{"" _test}.go into print package
This fully eliminates the util package.
2015-02-26 17:10:37 +01:00

26 lines
450 B
Makefile

EXE := elvish
PKGS := edit eval parse sys store errutil sysutil strutil print
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: sys/z-winsize.go
.PHONY: all elvish test cover pre-commit