]> git.lizzy.rs Git - micro.git/commitdiff
Let Go choose binary name and extension
authoranatoly techtonik <techtonik@gmail.com>
Sun, 4 Sep 2016 16:38:50 +0000 (19:38 +0300)
committeranatoly techtonik <techtonik@gmail.com>
Sun, 4 Sep 2016 16:38:50 +0000 (19:38 +0300)
This creates micro.exe on Windows

Makefile

index a1f6effa6b339d4c04d9a84b6d1c0b26e49127fa..c89a7aa5e136061a6ba55c598367602cf53ab83e 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -6,14 +6,14 @@ DATE = $(shell python -c 'import time; print(time.strftime("%B %d, %Y"))')
 
 # Builds micro after checking dependencies but without updating the runtime
 build: deps tcell
-       go build -ldflags "-X main.Version=$(VERSION) -X main.CommitHash=$(HASH) -X 'main.CompileDate=$(DATE)'" -o micro ./cmd/micro
+       go build -ldflags "-X main.Version=$(VERSION) -X main.CommitHash=$(HASH) -X 'main.CompileDate=$(DATE)'" ./cmd/micro
 
 # Builds micro after building the runtime and checking dependencies
 build-all: runtime build
 
 # Builds micro without checking for dependencies
 build-quick:
-       go build -ldflags "-X main.Version=$(VERSION) -X main.CommitHash=$(HASH) -X 'main.CompileDate=$(DATE)'" -o micro ./cmd/micro
+       go build -ldflags "-X main.Version=$(VERSION) -X main.CommitHash=$(HASH) -X 'main.CompileDate=$(DATE)'" ./cmd/micro
 
 # Same as 'build' but installs to $GOPATH/bin afterward
 install: build