forked from hashicorp/nomad-driver-podman
-
Notifications
You must be signed in to change notification settings - Fork 0
/
GNUmakefile
21 lines (18 loc) · 1001 Bytes
/
GNUmakefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
.PHONY: changelogfmt
changelogfmt:
@echo "--> Making [GH-xxxx] references clickable..."
@sed -E 's|([^\[])\[GH-([0-9]+)\]|\1[[GH-\2](https://github.com/hashicorp/nomad-driver-podman/issues/\2)]|g' CHANGELOG.md > changelog.tmp && mv changelog.tmp CHANGELOG.md
.PHONY: check
check: ## Lint the source code
@echo "==> Linting source code..."
@$(CURDIR)/build/bin/golangci-lint run
@echo "==> vetting hc-log statements"
@$(CURDIR)/build/bin/hclogvet $(CURDIR)
.PHONY: deps
deps: ## Install dependencies
## Keep versions in sync with tools/go.mod (see https://github.com/golang/go/issues/30515)
@echo "==> Installing dependencies..."
cd tools && GOBIN=$(CURDIR)/build/bin go get github.com/golangci/golangci-lint/cmd/[email protected]
cd tools && GOBIN=$(CURDIR)/build/bin go get github.com/client9/misspell/cmd/[email protected]
cd tools && GOBIN=$(CURDIR)/build/bin go get github.com/hashicorp/go-hclog/hclogvet@master
cd tools && GOBIN=$(CURDIR)/build/bin go get gotest.tools/gotestsum