Merge pull request #122244 from thockin/makefile_warn_undefined

Makefile: enable warn-undefined-variables
This commit is contained in:
Kubernetes Prow Robot 2023-12-14 07:27:30 +01:00 committed by GitHub
commit ac425531b1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -35,9 +35,13 @@ BASH_ENV := ./hack/lib/logging.sh
# Define variables so `make --warn-undefined-variables` works.
PRINT_HELP ?=
WHAT ?=
TESTS ?=
# We don't need make's built-in rules.
MAKEFLAGS += --no-builtin-rules
# Be pedantic about undefined variables.
MAKEFLAGS += --warn-undefined-variables
.SUFFIXES:
# Constants used throughout.