diff --git a/Makefile b/Makefile index ad54407..281fbbe 100644 --- a/Makefile +++ b/Makefile @@ -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) @@ -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 ./...