Skip to content
This repository has been archived by the owner on Oct 24, 2018. It is now read-only.

Commit

Permalink
change release archives name to simple
Browse files Browse the repository at this point in the history
  • Loading branch information
ysknmt committed Apr 19, 2017
1 parent 441edc3 commit dc2b23d
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
NAME := matterpoll-emoji
VERSION := 0.0.2
VERSION := v0.0.2
REVISION := $(shell git rev-parse --short HEAD)

LDFLAGS := -ldflags="-s -w -X \"main.Version=$(VERSION)\" -X \"main.Revision=$(REVISION)\" -extldflags \"-static\""
Expand All @@ -19,14 +19,16 @@ deps: glide

cross-build: deps
for os in darwin linux windows; do \
for arch in amd64 386; do \
GOOS=$$os GOARCH=$$arch CGO_ENABLED=0 go build -a -tags netgo -installsuffix netgo $(LDFLAGS) -o dist/$$os-$$arch/$(NAME); \
done; \
GOOS=$$os GOARCH=386 CGO_ENABLED=0 go build -a -tags netgo -installsuffix netgo $(LDFLAGS) -o dist/$$os-i686/$(NAME); \
done
for os in darwin linux windows; do \
GOOS=$$os GOARCH=amd64 CGO_ENABLED=0 go build -a -tags netgo -installsuffix netgo $(LDFLAGS) -o dist/$$os-x86_64/$(NAME); \
done

clean:
rm -rf bin/*
rm -rf vendor/*
rm -rf dist/*

test:
go test -cover -v `glide novendor`
Expand Down

0 comments on commit dc2b23d

Please sign in to comment.