1
0
mirror of https://github.com/open-telemetry/opentelemetry-go.git synced 2026-06-03 18:35:08 +02:00
Files
opentelemetry-go/Makefile
T

13 lines
478 B
Makefile
Raw Normal View History

2019-06-18 17:09:49 -07:00
.PHONY: precommit
TOOLS_DIR := ./.tools
$(TOOLS_DIR)/golangci-lint: go.mod go.sum tools.go
go build -o $(TOOLS_DIR)/golangci-lint github.com/golangci/golangci-lint/cmd/golangci-lint
$(TOOLS_DIR)/goimports: go.mod go.sum tools.go
go build -o $(TOOLS_DIR)/goimports golang.org/x/tools/cmd/goimports
precommit: $(TOOLS_DIR)/goimports $(TOOLS_DIR)/golangci-lint
$(TOOLS_DIR)/goimports -d -local github.com/open-telemetry/opentelemetry-go -w .
$(TOOLS_DIR)/golangci-lint run