Skip to content

Commit

Permalink
Add make release
Browse files Browse the repository at this point in the history
  • Loading branch information
metalmatze committed Mar 24, 2017
1 parent 2b2b11c commit 75da2dc
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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}}"

0 comments on commit 75da2dc

Please # to comment.