From 466d65d73e38545252528a81c31632ba316c77fa 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 --- Makefile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 14b7ecd475..36a5741e7b 100644 --- a/Makefile +++ b/Makefile @@ -1059,8 +1059,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, \