mirror of
https://github.com/zyedidia/micro
synced 2024-11-05 17:41:24 +00:00
27 lines
496 B
Makefile
27 lines
496 B
Makefile
.PHONY: runtime
|
|
|
|
VERSION = "$(shell git rev-parse --short HEAD)"
|
|
|
|
deps:
|
|
go get -d ./cmd/micro
|
|
|
|
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/gdamore/tcell pull
|
|
|
|
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
|