Skip to content

Commit

Permalink
Update tools.mk
Browse files Browse the repository at this point in the history
Signed-off-by: Matthieu MOREL <[email protected]>
  • Loading branch information
mmorel-35 authored Jan 11, 2024
1 parent 447b797 commit 56596c0
Showing 1 changed file with 30 additions and 12 deletions.
42 changes: 30 additions & 12 deletions tools/make/tools.mk
Original file line number Diff line number Diff line change
Expand Up @@ -12,20 +12,38 @@ $(tools.bindir)/%: $(tools.srcdir)/%.sh
# `go get`-able things
# ====================
#
tools/controller-gen = $(tools.bindir)/controller-gen
tools/golangci-lint = $(tools.bindir)/golangci-lint
tools/kustomize = $(tools.bindir)/kustomize
tools/kind = $(tools.bindir)/kind
tools/setup-envtest = $(tools.bindir)/setup-envtest
tools/crd-ref-docs = $(tools.bindir)/crd-ref-docs
tools/buf = $(tools.bindir)/buf
tools/protoc-gen-go = $(tools.bindir)/protoc-gen-go
tools/protoc-gen-go-grpc = $(tools.bindir)/protoc-gen-go-grpc
tools/helm-docs = $(tools.bindir)/helm-docs
$(tools.bindir)/%: $(tools.srcdir)/%.txt
GOOS= GOARCH= GOBIN=$(ROOT_DIR)/$(tools.bindir) go install "$$(cat $?)"
define go_install
GOOS= GOARCH= GOBIN=$(ROOT_DIR)/$(tools.bindir) go install $(1)
endef


$(tools.bindir)/controller-gen:
$(call go_install,sigs.k8s.io/controller-tools/cmd/[email protected])

$(tools.bindir)/golangci-lint:
$(call go_install,github.com/golangci/golangci-lint/cmd/[email protected])

$(tools.bindir)/kind:
$(call go_install,sigs.k8s.io/[email protected])

$(tools.bindir)/setup-envtest:
$(call go_install,sigs.k8s.io/controller-runtime/tools/[email protected])

$(tools.bindir)/crd-ref-docs:
$(call go_install,github.com/elastic/[email protected])

$(tools.bindir)/buf:
$(call go_install,github.com/bufbuild/buf/cmd/[email protected])

$(tools.bindir)/protoc-gen-go:
$(call go_install,google.golang.org/protobuf/cmd/[email protected])

$(tools.bindir)/protoc-gen-go-grpc:
$(call go_install,google.golang.org/grpc/cmd/[email protected])

$(tools.bindir)/helm-docs:
$(call go_install,github.com/norwoodj/helm-docs/cmd/[email protected])

# `pip install`-able things
# =========================
#
Expand Down

0 comments on commit 56596c0

Please sign in to comment.