3 VERSION = $(shell git describe --tags --abbrev=0)
4 HASH = $(shell git rev-parse --short HEAD)
6 # Builds micro after checking dependencies but without updating the runtime
8 go build -ldflags "-X main.Version=$(VERSION) -X main.CommitHash=$(HASH) -X 'main.CompileDate=$(shell date -u '+%B %d, %Y')'" -o micro ./cmd/micro
10 # Builds micro after building the runtiem and checking dependencies
11 build-all: runtime build
13 # Builds micro without checking for dependencies
15 go build -ldflags "-X main.Version=$(VERSION) -X main.CommitHash=$(HASH) -X 'main.CompileDate=$(shell date -u '+%B %d, %Y')'" -o micro ./cmd/micro
17 # Same as 'build' but installs to $GOPATH/bin afterward
19 mv micro $(GOPATH)/bin
21 # Same as 'build-all' but installs to $GOPATH/bin afterward
22 install-all: runtime install
24 # Same as 'build-quick' but installs to $GOPATH/bin afterward
25 install-quick: build-quick
26 mv micro $(GOPATH)/bin
30 git -C $(GOPATH)/src/github.com/zyedidia/tcell pull
32 # Checks for dependencies
38 go get -u github.com/jteeuwen/go-bindata/...
39 $(GOPATH)/bin/go-bindata -nometadata -o runtime.go runtime/...
40 mv runtime.go cmd/micro