automake
[Top][All Lists]
Advanced

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

Re: conditionals in Makefile.am


From: John Calcote
Subject: Re: conditionals in Makefile.am
Date: Wed, 30 Jun 2010 07:56:15 -0600
User-agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1.10) Gecko/20100512 Thunderbird/3.0.5

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



reply via email to

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