1、编译可执行类
make 根据 Makefile 的描述找到build脚本
# Copyright 2017 The Kubernetes Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # Add the following 'help' target to your Makefile # And add help text after each target name starting with '##' .DEFAULT_GOAL:=help .EXPORT_ALL_VARIABLES: ifndef VERBOSE .SILENT: endif # set default shell SHELL=/bin/bash -o pipefail -o errexit # Use the 0.0 tag for testing, it shouldn't clobber any release builds TAG ?= $(shell cat TAG) # e2e settings # Allow limiting the scope of the e2e tests. By default run everything FOCUS ?= .* # number of parallel test E2E_NODES ?= 7 # run e2e test suite with tests that check for memory leaks? (default is false) E2E_CHECK_LEAKS ?= REPO_INFO ?= $(shell git config --get remote.origin.url) COMMIT_SHA ?= git-$(shell git rev-parse --short HEAD) BUILD_ID ?= "UNSET" PKG = k8s.io/ingress-nginx HOST_ARCH = $(shell which go >/dev/null 2>&1 && go env GOARCH) ARCH ?= $(HOST_ARCH) ifeq ($(ARCH),) $(error mandatory variable ARCH is empty, either set it when calling the command or make sure 'go env GOARCH' works) endif REGISTRY ?= gcr.io/k8s-staging-ingress-nginx BASE_IMAGE ?= k8s.gcr.io/ingress-nginx/nginx:v20210809-g98288bc3c@sha256:f9363669cf26514c9548c1fe4f8f4e2f58dfb76616bcd638a0ff7f0ec3457c17 GOARCH=$(ARCH) help: ## Display this help @awk 'BEGIN {FS = ":.*##"; printf " Usage: make 33[36m<target>