help-make
[Top][All Lists]
Advanced

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

Re: conditional statements


From: Payal
Subject: Re: conditional statements
Date: Thu, 29 Apr 2010 21:21:17 -0700
User-agent: Mutt/1.5.18 (2008-05-17)

On Thu, Apr 29, 2010 at 09:12:05AM -0400, Mike Shal wrote:
> On 4/29/10, Payal <address@hidden> wrote:
> > Hello,
> >  Need some help in understaning below, please.
> >
> >  1. cat Makefile
> >  .PHONY : all
> >  ifndef $(one)
> >         one := 1
>   ^^^^^^^
> Do you have a tab here? I think make is putting the "one := 1" line as

That was indeed a TAB. I have removed it. Now working fine.

> use 'ifndef one' instead of 'ifndef $(one)' - the form you're using
> will be true if the value of $(one) isn't defined.

I was/am bit confused here. When to use var and when $(var) with ifdef
... ?


Thanks a lot all of you.

With warm regards,
-Payal
-- 






reply via email to

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