]> git.lizzy.rs Git - micro.git/blobdiff - Makefile
Update readme
[micro.git] / Makefile
index c89a7aa5e136061a6ba55c598367602cf53ab83e..b4407f9c5e3e443cf7d410151fd688792d2c2247 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,8 +1,8 @@
 .PHONY: runtime
 
-VERSION = $(shell git describe --tags --abbrev=0)
+VERSION = $(shell go run tools/build-version.go)
 HASH = $(shell git rev-parse --short HEAD)
-DATE = $(shell python -c 'import time; print(time.strftime("%B %d, %Y"))')
+DATE = $(shell go run tools/build-date.go)
 
 # Builds micro after checking dependencies but without updating the runtime
 build: deps tcell
@@ -17,6 +17,7 @@ build-quick:
 
 # Same as 'build' but installs to $GOPATH/bin afterward
 install: build
+       mkdir -p $(GOPATH)/bin
        mv micro $(GOPATH)/bin
 
 # Same as 'build-all' but installs to $GOPATH/bin afterward
@@ -24,6 +25,7 @@ install-all: runtime install
 
 # Same as 'build-quick' but installs to $GOPATH/bin afterward
 install-quick: build-quick
+       mkdir -p $(GOPATH)/bin
        mv micro $(GOPATH)/bin
 
 # Updates tcell