mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-09-19 16:40:46 -09:00
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 <David.Laight@ACULAB.COM>
Reported-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
Cc: Quentin Schulz <quentin.schulz@theobroma-systems.com>
(cherry picked from commit 466d65d73e)
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
This commit is contained in:
committed by
Peter Korsgaard
parent
f66f51b6c6
commit
fe73c6e9d0
3
Makefile
3
Makefile
@@ -1062,8 +1062,7 @@ endif
|
|||||||
.PHONY: printvars
|
.PHONY: printvars
|
||||||
printvars:
|
printvars:
|
||||||
ifndef VARS
|
ifndef VARS
|
||||||
@echo "Please pass a non-empty VARS to 'make printvars'"
|
$(error Please pass a non-empty VARS to 'make printvars')
|
||||||
@exit 1
|
|
||||||
endif
|
endif
|
||||||
@:
|
@:
|
||||||
$(foreach V, \
|
$(foreach V, \
|
||||||
|
|||||||
Reference in New Issue
Block a user