Skip to content

Commit

Permalink
Add release Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
ondrajz committed Jan 25, 2017
1 parent abc85c3 commit ad875cf
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
.PHONY: default install build test
.PHONY: default install build test release

GOARCH := $(shell go env GOARCH)
VERSION := $(shell git describe --dirty)
LDFLAGS := -X main.Version=$(VERSION)

Expand All @@ -12,6 +13,10 @@ install:
build:
go build -v -ldflags "$(LDFLAGS)"

release:
mkdir -p ./build/
go build -v -ldflags "$(LDFLAGS)" -o build/go-callvis_$(VERSION)-$(GOARCH)

test:
go test -v ./...

Expand Down

0 comments on commit ad875cf

Please sign in to comment.