This repository has been archived on 2021-06-22. You can view files and clone it, but cannot push or open issues or pull requests.
git-import/Makefile
John Olheiser 9222b99fd1 QoL (#1)
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
2020-09-12 19:53:28 +00:00

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 ./...