mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-27 05:27:21 +00:00
Tighten up Makefile
Default SHELL and some other variables for max correctness.
This commit is contained in:
parent
9eb42ff108
commit
2a7b2fd37e
11
Makefile
11
Makefile
@ -12,6 +12,13 @@
|
|||||||
# See the License for the specific language governing permissions and
|
# See the License for the specific language governing permissions and
|
||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
|
|
||||||
|
# It's necessary to set this because some docker images don't make sh -> bash.
|
||||||
|
SHELL := /bin/bash
|
||||||
|
|
||||||
|
# We don't need make's built-in rules.
|
||||||
|
MAKEFLAGS += --no-builtin-rules --warn-undefined-variables
|
||||||
|
.SUFFIXES:
|
||||||
|
|
||||||
# Old-skool build tools.
|
# Old-skool build tools.
|
||||||
#
|
#
|
||||||
# Targets (see each target for more information):
|
# Targets (see each target for more information):
|
||||||
@ -20,15 +27,17 @@
|
|||||||
# test: Run tests.
|
# test: Run tests.
|
||||||
# clean: Clean up.
|
# clean: Clean up.
|
||||||
|
|
||||||
OUT_DIR = _output
|
OUT_DIR ?= _output
|
||||||
BIN_DIR := $(OUT_DIR)/bin
|
BIN_DIR := $(OUT_DIR)/bin
|
||||||
PRJ_SRC_PATH := k8s.io/kubernetes
|
PRJ_SRC_PATH := k8s.io/kubernetes
|
||||||
GENERATED_FILE_PREFIX := zz_generated.
|
GENERATED_FILE_PREFIX := zz_generated.
|
||||||
MAKE_METAFILE_PREFIX := .make.
|
MAKE_METAFILE_PREFIX := .make.
|
||||||
|
|
||||||
|
GOFLAGS ?=
|
||||||
KUBE_GOFLAGS = $(GOFLAGS)
|
KUBE_GOFLAGS = $(GOFLAGS)
|
||||||
export KUBE_GOFLAGS
|
export KUBE_GOFLAGS
|
||||||
|
|
||||||
|
GOLDFLAGS ?=
|
||||||
KUBE_GOLDFLAGS = $(GOLDFLAGS)
|
KUBE_GOLDFLAGS = $(GOLDFLAGS)
|
||||||
export KUBE_GOLDFLAGS
|
export KUBE_GOLDFLAGS
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user