Skip to content

Commit

Permalink
Add release build
Browse files Browse the repository at this point in the history
  • Loading branch information
soudy committed Nov 8, 2016
1 parent 3da1141 commit c4467ec
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
BINARY=epp

VERSION=1.0.0
GIT_COMMIT=$(git rev-parse @)
LDFLAGS=-ldflags "-X main.Version=$(VERSION) -X main.GitCommit=$(GIT_COMMIT)"
GIT_COMMIT=`git rev-parse @`
LDFLAGS=-X main.Version=$(VERSION) -X main.GitCommit=$(GIT_COMMIT)

build:
go build $(LDFLAGS) -o $(BINARY)
go build -ldflags "$(LDFLAGS)" -o $(BINARY)

release:
go build -ldflags "-s -w $(LDFLAGS)" -o $(BINARY)

0 comments on commit c4467ec

Please sign in to comment.