Home

tmpl @71213332903e2651e8aaefae6b8c34909cc79519 - refs - log -
-
https://git.jolheiser.com/tmpl.git
Template automation
tmpl / Makefile
- raw
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
GO ?= go
VERSION ?= $(shell git describe --tags --always | sed 's/-/+/' | sed 's/^v//')

.PHONY: build
build:
	$(GO) build -ldflags '-s -w -X "go.jolheiser.com/tmpl/cmd.Version=$(VERSION)"'

.PHONY: vet
vet:
	$(GO) vet ./...

.PHONY: fmt
fmt:
	$(GO) fmt ./...

.PHONY: test
test:
	$(GO) test -race ./...

.PHONY: lint
lint:
	earth +lint

.PHONY: docs
docs:
	$(GO) run docs.go