diff options
author | ru <ru@FreeBSD.org> | 2002-09-27 09:21:07 +0000 |
---|---|---|
committer | ru <ru@FreeBSD.org> | 2002-09-27 09:21:07 +0000 |
commit | 34f9f49c0e6b1f01b6861c70542337b5cc0a34f3 (patch) | |
tree | 7e2c8e41b60fd367f0e1b58649dcfc5e09615e07 /usr.bin/make | |
parent | 913026ad48658c999e68acdbc51759db1c62eb64 (diff) | |
download | FreeBSD-src-34f9f49c0e6b1f01b6861c70542337b5cc0a34f3.zip FreeBSD-src-34f9f49c0e6b1f01b6861c70542337b5cc0a34f3.tar.gz |
Document the parsing bug.
Diffstat (limited to 'usr.bin/make')
-rw-r--r-- | usr.bin/make/make.1 | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/usr.bin/make/make.1 b/usr.bin/make/make.1 index c0b797c..69f7989 100644 --- a/usr.bin/make/make.1 +++ b/usr.bin/make/make.1 @@ -1244,14 +1244,26 @@ For instance, you should write tests as not the other way around, which doesn't work. .Pp For loops are expanded before tests, so a fragment such as: -.Bd -literal +.Bd -literal -offset indent \&.for TMACHINE in ${SHARED_ARCHS} \&.if ${TMACHINE} = ${MACHINE} ... \&.endif \&.endfor .Ed +.Pp won't work, and should be rewritten the other way around. +.Pp +The parsing code is broken with respect to handling a semicolon +after a colon, so a fragment like this will fail: +.Bd -literal -offset indent +HDRS= foo.h bar.h + +all: +\&.for h in ${HDRS:S;^;${.CURDIR}/;} + ... +\&.endfor +.Ed .Sh SEE ALSO .Xr mkdep 1 , .Xr make.conf 5 |