2024-10-18 16:13:33 +03:00
|
|
|
# Auto generated binary variables helper managed by https://github.com/bwplotka/bingo v0.9. DO NOT EDIT.
|
2023-06-13 16:54:49 +03:00
|
|
|
# All tools are designed to be build inside $GOBIN.
|
|
|
|
BINGO_DIR := $(dir $(lastword $(MAKEFILE_LIST)))
|
|
|
|
GOPATH ?= $(shell go env GOPATH)
|
|
|
|
GOBIN ?= $(firstword $(subst :, ,${GOPATH}))/bin
|
|
|
|
GO ?= $(shell which go)
|
|
|
|
|
|
|
|
# Below generated variables ensure that every time a tool under each variable is invoked, the correct version
|
|
|
|
# will be used; reinstalling only if needed.
|
2024-10-18 16:13:33 +03:00
|
|
|
# For example for buf variable:
|
2023-06-13 16:54:49 +03:00
|
|
|
#
|
|
|
|
# In your main Makefile (for non array binaries):
|
|
|
|
#
|
|
|
|
#include .bingo/Variables.mk # Assuming -dir was set to .bingo .
|
|
|
|
#
|
2024-10-18 16:13:33 +03:00
|
|
|
#command: $(BUF)
|
|
|
|
# @echo "Running buf"
|
|
|
|
# @$(BUF) <flags/args..>
|
2023-06-13 16:54:49 +03:00
|
|
|
#
|
2024-10-18 16:13:33 +03:00
|
|
|
BUF := $(GOBIN)/buf-v1.39.0
|
|
|
|
$(BUF): $(BINGO_DIR)/buf.mod
|
|
|
|
@# Install binary/ries using Go 1.14+ build command. This is using bwplotka/bingo-controlled, separate go module with pinned dependencies.
|
|
|
|
@echo "(re)installing $(GOBIN)/buf-v1.39.0"
|
|
|
|
@cd $(BINGO_DIR) && GOWORK=off $(GO) build -mod=mod -modfile=buf.mod -o=$(GOBIN)/buf-v1.39.0 "github.com/bufbuild/buf/cmd/buf"
|
|
|
|
|
2023-06-13 16:54:49 +03:00
|
|
|
GOIMPORTS := $(GOBIN)/goimports-v0.9.3
|
|
|
|
$(GOIMPORTS): $(BINGO_DIR)/goimports.mod
|
|
|
|
@# Install binary/ries using Go 1.14+ build command. This is using bwplotka/bingo-controlled, separate go module with pinned dependencies.
|
|
|
|
@echo "(re)installing $(GOBIN)/goimports-v0.9.3"
|
|
|
|
@cd $(BINGO_DIR) && GOWORK=off $(GO) build -mod=mod -modfile=goimports.mod -o=$(GOBIN)/goimports-v0.9.3 "golang.org/x/tools/cmd/goimports"
|
|
|
|
|