|
| 1 | +# Auto generated binary variables helper managed by https://github.com/bwplotka/bingo v0.7. DO NOT EDIT. |
| 2 | +# All tools are designed to be build inside $GOBIN. |
| 3 | +BINGO_DIR := $(dir $(lastword $(MAKEFILE_LIST))) |
| 4 | +GOPATH ?= $(shell go env GOPATH) |
| 5 | +GOBIN ?= $(firstword $(subst :, ,${GOPATH}))/bin |
| 6 | +GO ?= $(shell which go) |
| 7 | + |
| 8 | +# Below generated variables ensure that every time a tool under each variable is invoked, the correct version |
| 9 | +# will be used; reinstalling only if needed. |
| 10 | +# For example for benchstat variable: |
| 11 | +# |
| 12 | +# In your main Makefile (for non array binaries): |
| 13 | +# |
| 14 | +#include .bingo/Variables.mk # Assuming -dir was set to .bingo . |
| 15 | +# |
| 16 | +#command: $(BENCHSTAT) |
| 17 | +# @echo "Running benchstat" |
| 18 | +# @$(BENCHSTAT) <flags/args..> |
| 19 | +# |
| 20 | +BENCHSTAT := $(GOBIN)/benchstat-v0.0.0-20211012211434-03971e389cd3 |
| 21 | +$(BENCHSTAT): $(BINGO_DIR)/benchstat.mod |
| 22 | + @# Install binary/ries using Go 1.14+ build command. This is using bwplotka/bingo-controlled, separate go module with pinned dependencies. |
| 23 | + @echo "(re)installing $(GOBIN)/benchstat-v0.0.0-20211012211434-03971e389cd3" |
| 24 | + @cd $(BINGO_DIR) && GOWORK=off $(GO) build -mod=mod -modfile=benchstat.mod -o=$(GOBIN)/benchstat-v0.0.0-20211012211434-03971e389cd3 "golang.org/x/perf/cmd/benchstat" |
| 25 | + |
| 26 | +BINGO := $(GOBIN)/bingo-v0.7.0 |
| 27 | +$(BINGO): $(BINGO_DIR)/bingo.mod |
| 28 | + @# Install binary/ries using Go 1.14+ build command. This is using bwplotka/bingo-controlled, separate go module with pinned dependencies. |
| 29 | + @echo "(re)installing $(GOBIN)/bingo-v0.7.0" |
| 30 | + @cd $(BINGO_DIR) && GOWORK=off $(GO) build -mod=mod -modfile=bingo.mod -o=$(GOBIN)/bingo-v0.7.0 "github.com/bwplotka/bingo" |
| 31 | + |
| 32 | +GOFUMPT := $(GOBIN)/gofumpt-v0.1.1 |
| 33 | +$(GOFUMPT): $(BINGO_DIR)/gofumpt.mod |
| 34 | + @# Install binary/ries using Go 1.14+ build command. This is using bwplotka/bingo-controlled, separate go module with pinned dependencies. |
| 35 | + @echo "(re)installing $(GOBIN)/gofumpt-v0.1.1" |
| 36 | + @cd $(BINGO_DIR) && GOWORK=off $(GO) build -mod=mod -modfile=gofumpt.mod -o=$(GOBIN)/gofumpt-v0.1.1 "mvdan.cc/gofumpt" |
| 37 | + |
| 38 | +GOIMPORTS := $(GOBIN)/goimports-v0.1.7 |
| 39 | +$(GOIMPORTS): $(BINGO_DIR)/goimports.mod |
| 40 | + @# Install binary/ries using Go 1.14+ build command. This is using bwplotka/bingo-controlled, separate go module with pinned dependencies. |
| 41 | + @echo "(re)installing $(GOBIN)/goimports-v0.1.7" |
| 42 | + @cd $(BINGO_DIR) && GOWORK=off $(GO) build -mod=mod -modfile=goimports.mod -o=$(GOBIN)/goimports-v0.1.7 "golang.org/x/tools/cmd/goimports" |
| 43 | + |
| 44 | +GOLANGCI_LINT := $(GOBIN)/golangci-lint-v1.50.1 |
| 45 | +$(GOLANGCI_LINT): $(BINGO_DIR)/golangci-lint.mod |
| 46 | + @# Install binary/ries using Go 1.14+ build command. This is using bwplotka/bingo-controlled, separate go module with pinned dependencies. |
| 47 | + @echo "(re)installing $(GOBIN)/golangci-lint-v1.50.1" |
| 48 | + @cd $(BINGO_DIR) && GOWORK=off $(GO) build -mod=mod -modfile=golangci-lint.mod -o=$(GOBIN)/golangci-lint-v1.50.1 "github.com/golangci/golangci-lint/cmd/golangci-lint" |
| 49 | + |
| 50 | +GORELEASER := $(GOBIN)/goreleaser-v0.183.0 |
| 51 | +$(GORELEASER): $(BINGO_DIR)/goreleaser.mod |
| 52 | + @# Install binary/ries using Go 1.14+ build command. This is using bwplotka/bingo-controlled, separate go module with pinned dependencies. |
| 53 | + @echo "(re)installing $(GOBIN)/goreleaser-v0.183.0" |
| 54 | + @cd $(BINGO_DIR) && GOWORK=off $(GO) build -mod=mod -modfile=goreleaser.mod -o=$(GOBIN)/goreleaser-v0.183.0 "github.com/goreleaser/goreleaser" |
| 55 | + |
| 56 | +GOTEST2ACTION := $(GOBIN)/gotest2action-v0.0.0 |
| 57 | +$(GOTEST2ACTION): $(BINGO_DIR)/gotest2action.mod |
| 58 | + @# Install binary/ries using Go 1.14+ build command. This is using bwplotka/bingo-controlled, separate go module with pinned dependencies. |
| 59 | + @echo "(re)installing $(GOBIN)/gotest2action-v0.0.0" |
| 60 | + @cd $(BINGO_DIR) && GOWORK=off $(GO) build -mod=mod -modfile=gotest2action.mod -o=$(GOBIN)/gotest2action-v0.0.0 "github.com/willabides/go-test2action/cmd/gotest2action" |
| 61 | + |
0 commit comments