[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: conditionals in Makefile.am
From: |
Ralf Wildenhues |
Subject: |
Re: conditionals in Makefile.am |
Date: |
Tue, 6 Jul 2010 08:10:59 +0200 |
User-agent: |
Mutt/1.5.20 (2010-04-22) |
Hello,
* NightStrike wrote on Thu, Jul 01, 2010 at 06:58:49PM CEST:
> 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?
>
> Does it matter if the endif condition is COND or !COND?
Yes, if you use them, automake expects and verifies the convention
documented in the manual.
Cheers,
Ralf