| 1 |
|
| 2 |
|
| 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 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
|
| 18 |
|
| 19 |
|
| 20 |
BUILDABLE_V2 := $(GOBIN)/buildable-v2-v2.0.0 |
| 21 |
$(BUILDABLE_V2): $(BINGO_DIR)/buildable-v2.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)/buildable-v2-v2.0.0" |
| 24 |
@cd $(BINGO_DIR) && GOWORK=off $(GO) build -mod=mod -modfile=buildable-v2.mod -o=$(GOBIN)/buildable-v2-v2.0.0 "github.com/bwplotka/bingo-testmodule/v2/buildable" |
| 25 |
|
| 26 |
BUILDABLE_WITHREPLACE := $(GOBIN)/buildable-withReplace-v0.0.0-20221007091003-fe4d42a37d92 |
| 27 |
$(BUILDABLE_WITHREPLACE): $(BINGO_DIR)/buildable-withReplace.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)/buildable-withReplace-v0.0.0-20221007091003-fe4d42a37d92" |
| 30 |
@cd $(BINGO_DIR) && GOWORK=off $(GO) build -mod=mod -modfile=buildable-withReplace.mod -o=$(GOBIN)/buildable-withReplace-v0.0.0-20221007091003-fe4d42a37d92 "github.com/bwplotka/bingo-testmodule/buildable" |
| 31 |
|
| 32 |
BUILDABLE_ARRAY := $(GOBIN)/buildable-v0.0.0-20221007091146-39a7f0ae0b1e $(GOBIN)/buildable-v1.0.0 $(GOBIN)/buildable-v1.1.0 |
| 33 |
$(BUILDABLE_ARRAY): $(BINGO_DIR)/buildable.mod $(BINGO_DIR)/buildable.1.mod $(BINGO_DIR)/buildable.2.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)/buildable-v0.0.0-20221007091146-39a7f0ae0b1e" |
| 36 |
@cd $(BINGO_DIR) && GOWORK=off $(GO) build -mod=mod -modfile=buildable.mod -o=$(GOBIN)/buildable-v0.0.0-20221007091146-39a7f0ae0b1e "github.com/bwplotka/bingo-testmodule/buildable" |
| 37 |
@echo "(re)installing $(GOBIN)/buildable-v1.0.0" |
| 38 |
@cd $(BINGO_DIR) && GOWORK=off $(GO) build -mod=mod -modfile=buildable.1.mod -o=$(GOBIN)/buildable-v1.0.0 "github.com/bwplotka/bingo-testmodule/buildable" |
| 39 |
@echo "(re)installing $(GOBIN)/buildable-v1.1.0" |
| 40 |
@cd $(BINGO_DIR) && GOWORK=off $(GO) build -mod=mod -modfile=buildable.2.mod -o=$(GOBIN)/buildable-v1.1.0 "github.com/bwplotka/bingo-testmodule/buildable" |
| 41 |
|
| 42 |
BUILDABLE2 := $(GOBIN)/buildable2-v0.0.0-20221007091238-9d83f47b84c5 |
| 43 |
$(BUILDABLE2): $(BINGO_DIR)/buildable2.mod |
| 44 |
@# Install binary/ries using Go 1.14+ build command. This is using bwplotka/bingo-controlled, separate go module with pinned dependencies. |
| 45 |
@echo "(re)installing $(GOBIN)/buildable2-v0.0.0-20221007091238-9d83f47b84c5" |
| 46 |
@cd $(BINGO_DIR) && GOWORK=off $(GO) build -mod=mod -modfile=buildable2.mod -o=$(GOBIN)/buildable2-v0.0.0-20221007091238-9d83f47b84c5 "github.com/bwplotka/bingo-testmodule/buildable2" |
| 47 |
|