From 83dc781d29c4a16b71d4c25b961443a86668133c Mon Sep 17 00:00:00 2001 From: Tim Hockin Date: Tue, 19 Jan 2021 15:18:12 -0800 Subject: [PATCH] Make: init variables Driving towards the goal of `make --warn-undefined-variables` working. --- build/root/Makefile | 7 +++---- build/root/Makefile.generated_files | 4 ++++ 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/build/root/Makefile b/build/root/Makefile index a392aef3248..cb176b36036 100644 --- a/build/root/Makefile +++ b/build/root/Makefile @@ -32,6 +32,9 @@ endif # It's necessary to set this because some environments don't link sh -> bash. SHELL := /usr/bin/env bash +# Define variables so `make --warn-undefined-variables` works. +PRINT_HELP ?= + # We don't need make's built-in rules. MAKEFLAGS += --no-builtin-rules .SUFFIXES: @@ -56,10 +59,6 @@ $(error Both KUBE_GOFLAGS and GOFLAGS are set. Please use just GOFLAGS) endif endif -# Extra options for the release or quick-release options: -KUBE_RELEASE_RUN_TESTS := $(KUBE_RELEASE_RUN_TESTS) -KUBE_FASTBUILD := $(KUBE_FASTBUILD) - # This controls the verbosity of the build. Higher numbers mean more output. KUBE_VERBOSE ?= 1 diff --git a/build/root/Makefile.generated_files b/build/root/Makefile.generated_files index ac6ac1f991e..daeedd65692 100644 --- a/build/root/Makefile.generated_files +++ b/build/root/Makefile.generated_files @@ -32,6 +32,10 @@ endif # It's necessary to set this because some environments don't link sh -> bash. SHELL := /usr/bin/env bash +# Define variables so `make --warn-undefined-variables` works. +DBG_CODEGEN ?= +UPDATE_API_KNOWN_VIOLATIONS ?= + # This rule collects all the generated file sets into a single rule. Other # rules should depend on this to ensure generated files are rebuilt. .PHONY: generated_files