On Mon, 2011-10-03 at 18:11 -0700, Steve Sylvain wrote:
> I'm trying to use the $(or built-in function.  I stripped my problem
> down to this:
> $(if $(OR "TEST"), $(warning PASS), $(warning FAILED))
> 
> I always get the FAILED message.  Is my syntax correct?  Any pointers
> to help debug this issue?
> 
> I'm using make.exe V3.80 on Windows.

First, the function is $(or ...) not $(OR ...) (make, like all
UNIX-based tools, is case-sensitive).

Second, this function was added in GNU make 3.81 so it's not available
in your version.  Because of that it expands to the empty string, like
any other unknown variable name, hence the FAILED message.

See
http://cvs.savannah.gnu.org/viewvc/make/NEWS?revision=2.113&root=make&view=markup
for a list of user-visible features and the releases they were added in.

Cheers!

-- 
-------------------------------------------------------------------------------
 Paul D. Smith <[email protected]>          Find some GNU make tips at:
 http://www.gnu.org                      http://make.mad-scientist.net
 "Please remain calm...I may be mad, but I am a professional." --Mad Scientist


_______________________________________________
Help-make mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/help-make

Reply via email to