mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-12 09:58:36 +00:00
Remove redundant `\&' escapes.
This commit is contained in:
parent
0b13db0306
commit
762fcdcf7d
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=150609
@ -307,7 +307,7 @@ is used.
|
||||
The target is removed if
|
||||
.Nm
|
||||
is interrupted.
|
||||
.It Ic \&::
|
||||
.It Ic ::
|
||||
If no sources are specified, the target is always re-created.
|
||||
Otherwise, a target is considered out-of-date if any of its sources has
|
||||
been modified more recently than the target.
|
||||
@ -372,18 +372,18 @@ consist of all upper-case letters.
|
||||
The five operators that can be used to assign values to variables are as
|
||||
follows:
|
||||
.Bl -tag -width Ds
|
||||
.It Ic \&=
|
||||
.It Ic =
|
||||
Assign the value to the variable.
|
||||
Any previous value is overridden.
|
||||
.It Ic \&+=
|
||||
.It Ic +=
|
||||
Append the value to the current value of the variable.
|
||||
.It Ic \&?=
|
||||
.It Ic ?=
|
||||
Assign the value to the variable if it is not already defined.
|
||||
.It Ic \&:=
|
||||
.It Ic :=
|
||||
Assign with expansion, i.e., expand the value before assigning it
|
||||
to the variable.
|
||||
Normally, expansion is not done until the variable is referenced.
|
||||
.It Ic \&!=
|
||||
.It Ic !=
|
||||
Expand the value and pass it to the shell for execution and assign
|
||||
the result to the variable.
|
||||
Any newlines in the result are replaced with spaces.
|
||||
@ -401,7 +401,7 @@ or parentheses
|
||||
.Pq Ql ()
|
||||
and preceding it with
|
||||
a dollar sign
|
||||
.Pq Ql \&$ .
|
||||
.Pq Ql $ .
|
||||
If the variable name contains only a single letter, the surrounding
|
||||
braces or parentheses are not required.
|
||||
This shorter form is not recommended.
|
||||
@ -434,7 +434,7 @@ The seven local variables are as follows:
|
||||
.Bl -tag -width ".ARCHIVE"
|
||||
.It Va .ALLSRC
|
||||
The list of all sources for this target; also known as
|
||||
.Sq Va \&> .
|
||||
.Sq Va > .
|
||||
.It Va .ARCHIVE
|
||||
The name of the archive file; also known as
|
||||
.Sq Va \&! .
|
||||
@ -443,10 +443,10 @@ The name/path of the source from which the target is to be transformed
|
||||
(the
|
||||
.Dq implied
|
||||
source); also known as
|
||||
.Sq Va \&< .
|
||||
.Sq Va < .
|
||||
.It Va .MEMBER
|
||||
The name of the archive member; also known as
|
||||
.Sq Va \&% .
|
||||
.Sq Va % .
|
||||
.It Va .OODATE
|
||||
The list of sources for this target that were deemed out-of-date; also
|
||||
known as
|
||||
@ -463,10 +463,10 @@ The name of the target; also known as
|
||||
The shorter forms
|
||||
.Sq Va @ ,
|
||||
.Sq Va \&! ,
|
||||
.Sq Va \&< ,
|
||||
.Sq Va \&% ,
|
||||
.Sq Va < ,
|
||||
.Sq Va % ,
|
||||
.Sq Va \&? ,
|
||||
.Sq Va \&> ,
|
||||
.Sq Va > ,
|
||||
and
|
||||
.Sq Va *
|
||||
are permitted for backward
|
||||
@ -499,11 +499,11 @@ In addition,
|
||||
sets or knows about the following internal variables or environment
|
||||
variables:
|
||||
.Bl -tag -width ".Va .MAKEFILE_LIST"
|
||||
.It Va \&$
|
||||
.It Va $
|
||||
A single dollar sign
|
||||
.Ql \&$ ,
|
||||
.Ql $ ,
|
||||
i.e.\&
|
||||
.Ql \&$$
|
||||
.Ql $$
|
||||
expands to a single dollar
|
||||
sign.
|
||||
.It Va MAKE
|
||||
@ -686,9 +686,9 @@ The colon may be escaped with a backslash
|
||||
.Pq Ql \e .
|
||||
.Bl -tag -width Cm
|
||||
.Sm off
|
||||
.It Cm C No \&/ Ar pattern Xo
|
||||
.No \&/ Ar replacement
|
||||
.No \&/ Op Cm 1g
|
||||
.It Cm C No / Ar pattern Xo
|
||||
.No / Ar replacement
|
||||
.No / Op Cm 1g
|
||||
.Xc
|
||||
.Sm on
|
||||
Modify each word of the value,
|
||||
@ -746,9 +746,9 @@ safely through recursive invocations of
|
||||
.It Cm R
|
||||
Replaces each word in the variable with everything but its suffix.
|
||||
.Sm off
|
||||
.It Cm S No \&/ Ar old_string Xo
|
||||
.No \&/ Ar new_string
|
||||
.No \&/ Op Cm g
|
||||
.It Cm S No / Ar old_string Xo
|
||||
.No / Ar new_string
|
||||
.No / Op Cm g
|
||||
.Xc
|
||||
.Sm on
|
||||
Modify the first occurrence of
|
||||
@ -768,7 +768,7 @@ is anchored at the beginning of each word.
|
||||
If
|
||||
.Ar old_string
|
||||
ends with a dollar sign
|
||||
.Pq Ql \&$ ,
|
||||
.Pq Ql $ ,
|
||||
it is anchored at the end of each word.
|
||||
Inside
|
||||
.Ar new_string ,
|
||||
@ -788,7 +788,7 @@ and
|
||||
.Ar new_string
|
||||
with the single exception that a backslash is used to prevent the expansion
|
||||
of a dollar sign
|
||||
.Pq Ql \&$ ,
|
||||
.Pq Ql $ ,
|
||||
not a preceding dollar sign as is usual.
|
||||
.It Ar old_string=new_string
|
||||
This is the
|
||||
@ -825,8 +825,8 @@ dot
|
||||
character.
|
||||
The following directives are supported:
|
||||
.Bl -tag -width Ds
|
||||
.It Ic \&.include Ar <file>
|
||||
.It Ic \&.include Ar \*qfile\*q
|
||||
.It Ic .include Ar <file>
|
||||
.It Ic .include Ar \*qfile\*q
|
||||
Include the specified makefile.
|
||||
Variables between the angle brackets
|
||||
or double quotes are expanded to form the file name.
|
||||
@ -838,8 +838,8 @@ makefile's directory and any directories specified using the
|
||||
.Fl I
|
||||
option are searched before the system
|
||||
makefile directory.
|
||||
.It Ic \&.sinclude Ar <file>
|
||||
.It Ic \&.sinclude Ar \*qfile\*q
|
||||
.It Ic .sinclude Ar <file>
|
||||
.It Ic .sinclude Ar \*qfile\*q
|
||||
Like
|
||||
.Ic .include ,
|
||||
but silently ignored if the file cannot be found and opened.
|
||||
|
Loading…
Reference in New Issue
Block a user