From 6fee657d3acb7df7e3623a6167d9f198c0fd55d1 Mon Sep 17 00:00:00 2001 From: Tim Hockin Date: Fri, 21 Jan 2022 19:06:58 -0800 Subject: [PATCH] Makefile: enable warn-undefined-variables --- build/root/Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/build/root/Makefile b/build/root/Makefile index 8b36b077e4f..628b093d220 100644 --- a/build/root/Makefile +++ b/build/root/Makefile @@ -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.