summaryrefslogtreecommitdiff
path: root/doc/make.texi
diff options
context:
space:
mode:
authorPaul Smith <psmith@gnu.org>2005-05-13 12:45:30 +0000
committerPaul Smith <psmith@gnu.org>2005-05-13 12:45:30 +0000
commite50e0fdf8856fada821393af3dbd268db09c3b47 (patch)
treefde9bf944a5192b729a8faf18d5ef0085d49e22e /doc/make.texi
parent26d8d00cb77f0d71f72d4f61e7f38009dbef9715 (diff)
downloadgunmake-e50e0fdf8856fada821393af3dbd268db09c3b47.tar.gz
Implement new "if... else if... endif" semantics.
Diffstat (limited to 'doc/make.texi')
-rw-r--r--doc/make.texi26
1 files changed, 21 insertions, 5 deletions
diff --git a/doc/make.texi b/doc/make.texi
index fb40d29..4ffefb9 100644
--- a/doc/make.texi
+++ b/doc/make.texi
@@ -5723,14 +5723,30 @@ else
endif
@end example
+or:
+
+@example
+@var{conditional-directive}
+@var{text-if-one-is-true}
+else @var{conditional-directive}
+@var{text-if-true}
+else
+@var{text-if-false}
+endif
+@end example
+
@noindent
-If the condition is true, @var{text-if-true} is used; otherwise,
-@var{text-if-false} is used instead. The @var{text-if-false} can be any
-number of lines of text.
+There can be as many ``@code{else} @var{conditional-directive}''
+clauses as necessary. Once a given condition is true,
+@var{text-if-true} is used and no other clause is used; if no
+condition is true then @var{text-if-false} is used. The
+@var{text-if-true} and @var{text-if-false} can be any number of lines
+of text.
The syntax of the @var{conditional-directive} is the same whether the
-conditional is simple or complex. There are four different directives that
-test different conditions. Here is a table of them:
+conditional is simple or complex; after an @code{else} or not. There
+are four different directives that test different conditions. Here is
+a table of them:
@table @code
@item ifeq (@var{arg1}, @var{arg2})