From 75da2dc0fa0c5e20410a2b2c63d6e1ba78e24137 Mon Sep 17 00:00:00 2001 From: Matthias Loibl Date: Fri, 24 Mar 2017 01:58:06 +0100 Subject: [PATCH] Add make release --- Makefile | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Makefile b/Makefile index b74fb0f..7e0fcc5 100644 --- a/Makefile +++ b/Makefile @@ -44,3 +44,10 @@ build: $(EXECUTABLE) .PHONY: install install: $(GO) install -v -ldflags '-w $(LDFLAGS)' + +.PHONY: release +release: + @which gox > /dev/null; if [ $$? -ne 0 ]; then \ + $(GO) get -u github.com/mitchellh/gox; \ + fi + CGO_ENABLED=0 gox -verbose -ldflags '-w $(LDFLAGS)' -output="releases/{{.Dir}}-0.1.{{.OS}}-{{.Arch}}"