Note that an unrecognised word in a .if is the same as in .ifdef and that

such a word has to be white-space separated.
From PR bin/30967 bin/37222 and maybe others!
This commit is contained in:
dsl 2008-12-21 21:05:27 +00:00
parent f2de2e5cbd
commit 14bf83b326

View File

@ -1,4 +1,4 @@
.\" $NetBSD: make.1,v 1.149 2008/12/21 19:32:16 dsl Exp $ .\" $NetBSD: make.1,v 1.150 2008/12/21 21:05:27 dsl Exp $
.\" .\"
.\" Copyright (c) 1990, 1993 .\" Copyright (c) 1990, 1993
.\" The Regents of the University of California. All rights reserved. .\" The Regents of the University of California. All rights reserved.
@ -1449,16 +1449,17 @@ of a string comparison.
.Pp .Pp
When When
.Nm .Nm
is evaluating one of these conditional expression, and it encounters is evaluating one of these conditional expressions, and it encounters
a word it doesn't recognize, either the a (white-space separated) word it doesn't recognize, either the
.Dq make .Dq make
or or
.Dq defined .Dq defined
expression is applied to it, depending on the form of the conditional. expression is applied to it, depending on the form of the conditional.
If the form is If the form is
.Ql Ic .ifdef .Ql Ic .ifdef ,
or
.Ql Ic .ifndef , .Ql Ic .ifndef ,
or
.Ql Ic .if
the the
.Dq defined .Dq defined
expression is applied. expression is applied.