From fe73c6e9d02df06c0ca8a5e3b80679ce72415718 Mon Sep 17 00:00:00 2001 From: "Yann E. MORIN" Date: Thu, 4 Aug 2022 23:05:01 +0200 Subject: [PATCH] Makefile: enhance reporting error about empty VARS Use $(error) to simplify the code (drop "exit 1") and sned the message to stderr. Reported-by: David Laight Reported-by: Arnout Vandecappelle (Essensium/Mind) Signed-off-by: Yann E. MORIN Cc: Quentin Schulz (cherry picked from commit 466d65d73e38545252528a81c31632ba316c77fa) Signed-off-by: Peter Korsgaard --- Makefile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 2b4d927445..51de2066d7 100644 --- a/Makefile +++ b/Makefile @@ -1062,8 +1062,7 @@ endif .PHONY: printvars printvars: ifndef VARS - @echo "Please pass a non-empty VARS to 'make printvars'" - @exit 1 + $(error Please pass a non-empty VARS to 'make printvars') endif @: $(foreach V, \