micro/Makefile
2016-04-26 21:23:52 -04:00

27 lines
497 B
Makefile

.PHONY: runtime
VERSION = "$(shell git rev-parse --short HEAD)"
build: deps runtime tcell
go build -ldflags "-X main.Version=$(VERSION)" -o micro ./cmd/micro
install: build
mv micro $(GOPATH)/bin
tcell:
git -C $(GOPATH)/src/github.com/zyedidia/tcell pull
deps:
go get -d ./cmd/micro
runtime:
go get -u github.com/jteeuwen/go-bindata/...
$(GOPATH)/bin/go-bindata -o runtime.go runtime/...
mv runtime.go cmd/micro
test:
go get -d ./cmd/micro
go test ./cmd/micro
clean:
rm -f micro