Add release target to Makefile

This commit is contained in:
Leigh McCulloch 2018-09-18 05:34:49 +00:00
parent ec9d5a83e8
commit 0a2a0109df
1 changed files with 6 additions and 2 deletions

View File

@ -1,4 +1,4 @@
version=$(shell git describe --always --dirty)
dev_build_version=$(shell git describe --always --dirty)
# TODO: run golint and errcheck, but only to catch *new* violations and
# decide whether to change code or not (e.g. we need to be able to whitelist
@ -18,7 +18,11 @@ updatedeps:
.PHONY: install
install:
go install -ldflags '-X "main.version=dev build $(version)"' ./...
go install -ldflags '-X "main.version=dev build $(dev_build_version)"' ./...
.PHONY: release
release:
goreleaser --rm-dist
.PHONY: checkgofmt
checkgofmt: