[nit] Makefile style

This commit is contained in:
Motiejus Jakštys 2021-09-06 09:01:05 +03:00 committed by Motiejus Jakštys
parent d3933efd74
commit ec61d24fd4

View File

@ -1,6 +1,5 @@
SCRIPTS = $(shell awk '/#!\/bin\/(ba)?sh/&&FNR==1{print FILENAME}' $(shell git ls-files)) SCRIPTS = $(shell awk '/#!\/bin\/(ba)?sh/&&FNR==1{print FILENAME}' $(shell git ls-files))
GODEPS = $(shell git ls-files '*.go' go.mod go.sum) GODEPS = $(shell git ls-files '*.go' go.mod go.sum)
GOBIN = $(shell go env GOPATH)/bin/
GOOSARCHS = $(sort darwin/amd64 linux/amd64) GOOSARCHS = $(sort darwin/amd64 linux/amd64)
VSN ?= $(shell git describe --dirty) VSN ?= $(shell git describe --dirty)
@ -32,7 +31,7 @@ sha256sum-asc: sha256sum-$(VSN).txt.asc
.PHONY: lint .PHONY: lint
lint: lint:
go vet ./... go vet ./...
$(GOBIN)staticcheck -f stylish ./... $(shell go env GOPATH)/bin/staticcheck -f stylish ./...
shellcheck $(SCRIPTS) shellcheck $(SCRIPTS)
.INTERMEDIATE: coverage.out .INTERMEDIATE: coverage.out