On Thu, Jun 05, 2008 at 05:36:56AM -0700, rakesh aggarwal wrote:
> Hi,
> 
> I read the GNU make manual and found there are $(or condition ) and $(and 
> condition ) functions. ( at 
> http://www.gnu.org/software/make/manual/make.html#Conditional-Functions )
> But i didnt get in which format i have to put conditions in these functions.

Notice that this is condition and not expressions.

Sample:

havefile := $(if $(wildcard myfile.c), YES, NO)

$(warning HAVEFILE=$(HAVEFILE))


This will print
HAVEFILE=NO

if no myfile.c exist (because the $(wildcard myfile.c) expands to an empty 
string

        Sam


_______________________________________________
Bug-make mailing list
Bug-make@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-make

Reply via email to