Follow-up Comment #4, bug #63737 (group make): Not a direct answer, but have you looked at "libraries" that may satisfy that requirement?
For instance, using 'bmakelib', the following snippet would fail as soon as
you try to run 'my-target' if 'VAR1' has is not set.
include bmakelib/bmakelib.mk
my-target : bmakelib.error-if-blank( VAR1 )
my-target :
@echo ✅ VAR1 value is $(VAR1)
See https://github.com/bahmanm/bmakelib
PS: I'm the author :-)
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?63737>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
signature.asc
Description: PGP signature
