Add release target to Makefile
This commit is contained in:
parent
ec9d5a83e8
commit
0a2a0109df
8
Makefile
8
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
|
# 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
|
# decide whether to change code or not (e.g. we need to be able to whitelist
|
||||||
|
|
@ -18,7 +18,11 @@ updatedeps:
|
||||||
|
|
||||||
.PHONY: install
|
.PHONY: install
|
||||||
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
|
.PHONY: checkgofmt
|
||||||
checkgofmt:
|
checkgofmt:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue