help-make
[Top][All Lists]
Advanced

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

Re: conditional statements


From: Oleksandr Gavenko
Subject: Re: conditional statements
Date: Fri, 30 Apr 2010 14:54:26 +0300
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.9) Gecko/20100317 Thunderbird/3.0.4

On 2010.04.30 7:21, Payal wrote:
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
... ?
Google tutors:
http://www.eng.hawaii.edu/Tutor/Make/index.html
http://www.opussoftware.com/tutorial/TutMakefile.htm

Make is great software. Spend time to learn it.

--
С уважением, Александр Гавенко.




reply via email to

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