micro/Makefile

28 lines
497 B
Makefile
Raw Normal View History

.PHONY: runtime
2016-04-19 17:40:30 +00:00
VERSION = "$(shell git rev-parse --short HEAD)"
2016-04-21 23:27:47 +00:00
build: deps runtime tcell
2016-04-19 17:40:30 +00:00
go build -ldflags "-X main.Version=$(VERSION)" -o micro ./cmd/micro
2016-03-21 16:51:45 +00:00
install: build
2016-04-18 15:36:51 +00:00
mv micro $(GOPATH)/bin
2016-03-21 16:51:45 +00:00
tcell:
2016-04-27 01:23:52 +00:00
git -C $(GOPATH)/src/github.com/zyedidia/tcell pull
deps:
go get -d ./cmd/micro
2016-04-18 13:35:53 +00:00
runtime:
go get -u github.com/jteeuwen/go-bindata/...
$(GOPATH)/bin/go-bindata -o runtime.go runtime/...
2016-04-18 13:35:53 +00:00
mv runtime.go cmd/micro
2016-03-25 17:42:41 +00:00
test:
go get -d ./cmd/micro
go test ./cmd/micro
2016-03-25 17:42:41 +00:00
clean:
rm -f micro