automake
[Top][All Lists]
Advanced

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

Re: conditionals in Makefile.am


From: NightStrike
Subject: Re: conditionals in Makefile.am
Date: Thu, 1 Jul 2010 12:58:49 -0400

On Wed, Jun 30, 2010 at 9:56 AM, John Calcote <address@hidden> wrote:
> On 6/30/2010 3:41 AM, Wesley Smith wrote:
>>> From the automake manual:
>>>
>> You may only test a single variable in an if statement, possibly
>> negated using ‘!’. The else statement may be omitted. Conditionals may
>> be nested to any depth. You may specify an argument to else in which
>> case it must be the negation of the condition used for the current if.
>> Similarly you may specify the condition that is closed on the endif
>> line:
>>
>>      if DEBUG
>>      DBG = debug
>>      else !DEBUG
>>      DBG =
>>      endif !DEBUG
>>
>>
>> What's the purpose of "specifying the condition that is closed"?  I've
>> never seen this kind of construct before.  Is it a substitute for
>> elseif?
>>
>
> Documentation. There may be several dozen lines of code between the if
> and the else. A reader may be wondering... else what?
>
> John
>
>

Does it matter if the endif condition is COND or !COND?



reply via email to

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