John Olheiser
9222b99fd1
Update dependencies and add some QoL enhancements Signed-off-by: jolheiser <john.olheiser@gmail.com> Co-authored-by: jolheiser <john.olheiser@gmail.com> Reviewed-on: #1
18 lines
283 B
Makefile
18 lines
283 B
Makefile
GO ?= go
|
|
VERSION ?= $(shell git describe --tags --always | sed 's/-/+/' | sed 's/^v//')
|
|
|
|
.PHONY: build
|
|
build:
|
|
$(GO) build -ldflags '-s -w -X "main.Version=$(VERSION)"'
|
|
|
|
.PHONY: fmt
|
|
fmt:
|
|
$(GO) fmt ./...
|
|
|
|
.PHONY: test
|
|
test:
|
|
$(GO) test --race ./...
|
|
|
|
.PHONY: vet
|
|
vet:
|
|
$(GO) vet ./...
|