[Top][All Lists]

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

Re: conditional statements

From: Mike Shal
Subject: Re: conditional statements
Date: Thu, 29 Apr 2010 09:12:05 -0400

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
part of the command script for the .PHONY target, which doesn't make
sense. Just use spaces to indent these. Also, you probably meant to
use 'ifndef one' instead of 'ifndef $(one)' - the form you're using
will be true if the value of $(one) isn't defined.


reply via email to

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