[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
conditionals in Makefile.am
From: |
Wesley Smith |
Subject: |
conditionals in Makefile.am |
Date: |
Wed, 30 Jun 2010 11:41:12 +0200 |
> 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?
wes
- conditionals in Makefile.am,
Wesley Smith <=