From 3b23fca5105e17c9c6739e339cea6cace41b17e8 Mon Sep 17 00:00:00 2001 From: Jimmi Dyson Date: Wed, 14 Oct 2015 22:19:08 +0100 Subject: [PATCH] Fix up Makefile for release --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index aa68768..6afbe19 100644 --- a/Makefile +++ b/Makefile @@ -23,10 +23,10 @@ local: *.go release: rm -rf build release && mkdir build release for os in linux freebsd darwin ; do \ - GOOS=$$os ARCH=amd64 godep go build -ldflags "-X main.Version=$(VERSION)" -o build/kuisp-$$os-amd64 ; \ + GOOS=$$os ARCH=amd64 go build -ldflags "-X main.Version=$(VERSION)" -o build/kuisp-$$os-amd64 ; \ tar --transform 's|^build/||' --transform 's|-.*||' -czvf release/kuisp-$(VERSION)-$$os-amd64.tar.gz build/kuisp-$$os-amd64 README.md LICENSE ; \ done - GOOS=windows ARCH=amd64 godep go build -ldflags "-X main.Version=$(VERSION)" -o build/kuisp-$(VERSION)-windows-amd64.exe + GOOS=windows ARCH=amd64 go build -ldflags "-X main.Version=$(VERSION)" -o build/kuisp-$(VERSION)-windows-amd64.exe zip release/kuisp-$(VERSION)-windows-amd64.zip build/kuisp-$(VERSION)-windows-amd64.exe README.md LICENSE && \ echo -e "@ build/kuisp-$(VERSION)-windows-amd64.exe\n@=kuisp.exe" | zipnote -w release/kuisp-$(VERSION)-windows-amd64.zip go get github.com/progrium/gh-release/...