| 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 |
GOHOSTOS ?= $(shell $(GO) env GOHOSTOS) |
| 11 |
GOHOSTARCH ?= $(shell $(GO) env GOHOSTARCH) |
| 12 |
GOHOSTARM ?= $(shell $(GO) env GOHOSTARM) |
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
|
| 18 |
|
| 19 |
|
| 20 |
|
| 21 |
|
| 22 |
|
| 23 |
|
| 24 |
|
| 25 |
|
| 26 |
COPYRIGHT := $(GOBIN)/copyright-v0.0.0-20230505153745-6b7392939a60 |
| 27 |
$(COPYRIGHT): $(BINGO_DIR)/copyright.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)/copyright-v0.0.0-20230505153745-6b7392939a60" |
| 30 |
@cd $(BINGO_DIR) && GOWORK=off GOOS=$(GOHOSTOS) GOARCH=$(GOHOSTARCH) GOARM=$(GOHOSTARM) $(GO) build -mod=mod -modfile=copyright.mod -o=$(GOBIN)/copyright-v0.0.0-20230505153745-6b7392939a60 "github.com/efficientgo/tools/copyright" |
| 31 |
|
| 32 |
EMBEDMD := $(GOBIN)/embedmd-v1.0.0 |
| 33 |
$(EMBEDMD): $(BINGO_DIR)/embedmd.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)/embedmd-v1.0.0" |
| 36 |
@cd $(BINGO_DIR) && GOWORK=off GOOS=$(GOHOSTOS) GOARCH=$(GOHOSTARCH) GOARM=$(GOHOSTARM) $(GO) build -mod=mod -modfile=embedmd.mod -o=$(GOBIN)/embedmd-v1.0.0 "github.com/campoy/embedmd" |
| 37 |
|
| 38 |
FAILLINT := $(GOBIN)/faillint-v1.15.0 |
| 39 |
$(FAILLINT): $(BINGO_DIR)/faillint.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)/faillint-v1.15.0" |
| 42 |
@cd $(BINGO_DIR) && GOWORK=off GOOS=$(GOHOSTOS) GOARCH=$(GOHOSTARCH) GOARM=$(GOHOSTARM) $(GO) build -mod=mod -modfile=faillint.mod -o=$(GOBIN)/faillint-v1.15.0 "github.com/fatih/faillint" |
| 43 |
|
| 44 |
GOIMPORTS := $(GOBIN)/goimports-v0.38.0 |
| 45 |
$(GOIMPORTS): $(BINGO_DIR)/goimports.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)/goimports-v0.38.0" |
| 48 |
@cd $(BINGO_DIR) && GOWORK=off GOOS=$(GOHOSTOS) GOARCH=$(GOHOSTARCH) GOARM=$(GOHOSTARM) $(GO) build -mod=mod -modfile=goimports.mod -o=$(GOBIN)/goimports-v0.38.0 "golang.org/x/tools/cmd/goimports" |
| 49 |
|
| 50 |
GOLANGCI_LINT := $(GOBIN)/golangci-lint-v1.64.8 |
| 51 |
$(GOLANGCI_LINT): $(BINGO_DIR)/golangci-lint.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)/golangci-lint-v1.64.8" |
| 54 |
@cd $(BINGO_DIR) && GOWORK=off GOOS=$(GOHOSTOS) GOARCH=$(GOHOSTARCH) GOARM=$(GOHOSTARM) $(GO) build -mod=mod -modfile=golangci-lint.mod -o=$(GOBIN)/golangci-lint-v1.64.8 "github.com/golangci/golangci-lint/cmd/golangci-lint" |
| 55 |
|
| 56 |
MDOX := $(GOBIN)/mdox-v0.9.0 |
| 57 |
$(MDOX): $(BINGO_DIR)/mdox.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)/mdox-v0.9.0" |
| 60 |
@cd $(BINGO_DIR) && GOWORK=off GOOS=$(GOHOSTOS) GOARCH=$(GOHOSTARCH) GOARM=$(GOHOSTARM) $(GO) build -mod=mod -modfile=mdox.mod -o=$(GOBIN)/mdox-v0.9.0 "github.com/bwplotka/mdox" |
| 61 |
|
| 62 |
MISSPELL := $(GOBIN)/misspell-v0.3.4 |
| 63 |
$(MISSPELL): $(BINGO_DIR)/misspell.mod |
| 64 |
@# Install binary/ries using Go 1.14+ build command. This is using bwplotka/bingo-controlled, separate go module with pinned dependencies. |
| 65 |
@echo "(re)installing $(GOBIN)/misspell-v0.3.4" |
| 66 |
@cd $(BINGO_DIR) && GOWORK=off GOOS=$(GOHOSTOS) GOARCH=$(GOHOSTARCH) GOARM=$(GOHOSTARM) $(GO) build -mod=mod -modfile=misspell.mod -o=$(GOBIN)/misspell-v0.3.4 "github.com/client9/misspell/cmd/misspell" |
| 67 |
|
| 68 |
PROXY := $(GOBIN)/proxy-v0.10.0 |
| 69 |
$(PROXY): $(BINGO_DIR)/proxy.mod |
| 70 |
@# Install binary/ries using Go 1.14+ build command. This is using bwplotka/bingo-controlled, separate go module with pinned dependencies. |
| 71 |
@echo "(re)installing $(GOBIN)/proxy-v0.10.0" |
| 72 |
@cd $(BINGO_DIR) && GOWORK=off GOOS=$(GOHOSTOS) GOARCH=$(GOHOSTARCH) GOARM=$(GOHOSTARM) $(GO) build -mod=mod -modfile=proxy.mod -o=$(GOBIN)/proxy-v0.10.0 "github.com/gomods/athens/cmd/proxy" |
| 73 |
|