Follow-up Comment #2, bug #44464 (project make):
What I'm using it for is a way to create a number of functions that can be
used like $(if) but they test a specific condition and only evaluate either
the true or false part, not both. For example:
{{{
$(setstate if_something, $(ifdef some_variable, true, false))
# ... later on ...
$(if_something $(info yes), $(error no))
}}}
With existing make syntax I'd need to do something like this:
{{{
$(if $(filter undefined, $(origin some_variable)), $(info yes), $(error no))
}}}
... in order to avoid having $(error) kill the build.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?44464>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
_______________________________________________
Bug-make mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-make