Makefiles for all modules

This commit is contained in:
Katrina Verey
2022-04-01 15:45:48 -04:00
parent 2a9adbeb1e
commit 0d32543ebd
49 changed files with 152 additions and 41 deletions

View File

@@ -1,6 +1,12 @@
# Copyright 2022 The Kubernetes Authors.
# SPDX-License-Identifier: Apache-2.0
MYGOBIN = $(shell go env GOBIN)
ifeq ($(MYGOBIN),)
MYGOBIN = $(shell go env GOPATH)/bin
endif
export PATH := $(MYGOBIN):$(PATH)
.PHONY: install-out-of-tree-tools
install-out-of-tree-tools: \
$(MYGOBIN)/goimports \
@@ -36,6 +42,9 @@ $(MYGOBIN)/mdtogo:
$(MYGOBIN)/addlicense:
go install github.com/google/addlicense
$(MYGOBIN)/statik:
go install github.com/rakyll/statik
$(MYGOBIN)/kind:
( \
set -e; \