mirror of
https://github.com/grafana/grafana.git
synced 2024-11-23 09:26:43 -06:00
89e7a56714
* Force use drone-cli 1.4.0 * Small modifications to prevent null generation * Sign drone * Use bingo to declare drone-cli version * Update message in Makefile * Update to latest grabpl version
32 lines
1.4 KiB
Makefile
32 lines
1.4 KiB
Makefile
# Auto generated binary variables helper managed by https://github.com/bwplotka/bingo v0.5.1. DO NOT EDIT.
|
|
# 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.
|
|
# For example for drone variable:
|
|
#
|
|
# In your main Makefile (for non array binaries):
|
|
#
|
|
#include .bingo/Variables.mk # Assuming -dir was set to .bingo .
|
|
#
|
|
#command: $(DRONE)
|
|
# @echo "Running drone"
|
|
# @$(DRONE) <flags/args..>
|
|
#
|
|
DRONE := $(GOBIN)/drone-v1.4.0
|
|
$(DRONE): $(BINGO_DIR)/drone.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)/drone-v1.4.0"
|
|
@cd $(BINGO_DIR) && $(GO) build -mod=mod -modfile=drone.mod -o=$(GOBIN)/drone-v1.4.0 "github.com/drone/drone-cli/drone"
|
|
|
|
WIRE := $(GOBIN)/wire-v0.5.0
|
|
$(WIRE): $(BINGO_DIR)/wire.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)/wire-v0.5.0"
|
|
@cd $(BINGO_DIR) && $(GO) build -mod=mod -modfile=wire.mod -o=$(GOBIN)/wire-v0.5.0 "github.com/google/wire/cmd/wire"
|
|
|