From 0a2a0109df3693b03bc84f16abeb80c68cd7f4d4 Mon Sep 17 00:00:00 2001 From: Leigh McCulloch Date: Tue, 18 Sep 2018 05:34:49 +0000 Subject: [PATCH] Add release target to Makefile --- Makefile | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 4661158..7dd3e18 100644 --- a/Makefile +++ b/Makefile @@ -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: