From 4b350d02e0b2318fe74217a38c78a65b2942eb56 Mon Sep 17 00:00:00 2001 From: anatoly techtonik Date: Sun, 4 Sep 2016 19:38:50 +0300 Subject: [PATCH] Let Go choose binary name and extension This creates micro.exe on Windows --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index a1f6effa..c89a7aa5 100644 --- 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