mirror of
https://github.com/go-sylixos/elvish.git
synced 2024-12-05 03:17:50 +08:00
900d814edb
This fully eliminates the util package.
26 lines
450 B
Makefile
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
|