help-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

conditional statement help


From: pip9ball
Subject: conditional statement help
Date: Thu, 21 May 2009 17:41:28 -0700 (PDT)

Hi,

I'm just wondering if it's possible to have "or, and" clauses in conditional
statements.

For example:

Can this -->
ifeq($(USE_MK),true)
do something
endif
ifeq($(USE_BH),true)
do something
endif

be replaced with this -->

ifeq($(USE_MK) || $(USE_BH), true)
do something
endif

currently I have a fairly long ifeq conditional and I need to execute this
code if either of two variables are set.  It would be nice to re-use code if
possible.

Thanks,

Phillip


-- 
View this message in context: 
http://www.nabble.com/conditional-statement-help-tp23662699p23662699.html
Sent from the Gnu - Make - Help mailing list archive at Nabble.com.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]