X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=Makefile;h=bc7081394eeb05e5259c3e7fa4fd597b3538de7a;hb=007ece1e78ea61cba40d5d801f9759e6e93574e8;hp=1cb6f9c65c4c8623c4559e61a882e7c63219d809;hpb=5112fa6fa7df0ed2feaaae118b7b351121ccb37f;p=micro.git diff --git a/Makefile b/Makefile index 1cb6f9c6..bc708139 100644 --- a/Makefile +++ b/Makefile @@ -2,16 +2,17 @@ VERSION = "$(shell git rev-parse --short HEAD)" -build: runtime tcell - go get -d ./cmd/micro +build: deps tcell go build -ldflags "-X main.Version=$(VERSION)" -o micro ./cmd/micro install: build mv micro $(GOPATH)/bin tcell: - cd $(GOPATH)/src/github.com/gdamore/tcell - git pull + git -C $(GOPATH)/src/github.com/zyedidia/tcell pull + +deps: + go get -d ./cmd/micro runtime: go get -u github.com/jteeuwen/go-bindata/...