aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/make/make.1
diff options
context:
space:
mode:
authorWill Andrews <will@FreeBSD.org>2000-10-09 04:31:43 +0000
committerWill Andrews <will@FreeBSD.org>2000-10-09 04:31:43 +0000
commit2694d8d14727b4ce0852382fee7e9940e27651d5 (patch)
treea54cf08eb5630fa1eabe12ff29787cca0d81d6c6 /usr.bin/make/make.1
parent6e98a1467f95b3b4a4909283ffb31fa3d1edc929 (diff)
Notes
Diffstat (limited to 'usr.bin/make/make.1')
-rw-r--r--usr.bin/make/make.128
1 files changed, 28 insertions, 0 deletions
diff --git a/usr.bin/make/make.1 b/usr.bin/make/make.1
index d8f1950cdcf8..85a53d5e0999 100644
--- a/usr.bin/make/make.1
+++ b/usr.bin/make/make.1
@@ -596,6 +596,34 @@ special characters.
The colon may be escaped with a backslash
.Pq Ql \e .
.Bl -tag -width Cm E\&
+.Sm off
+.It Cm C No \&/ Ar pattern Xo
+.No \&/ Ar replacement
+.No \&/ Op Cm 1g
+.Xc
+.Sm on
+The
+.Cm C
+modifier is just like the
+.Cm S
+modifier except that the old and new strings, instead of being
+simple strings, are a regular expression (see
+.Xr regex 3 )
+and an
+.Xr ed 1 Ns \-style
+replacement string. Normally, the first occurrence of the pattern in
+each word of the value is changed. The
+.Ql 1
+modifier causes the substitution to apply to at most one word; the
+.Ql g
+modifier causes the substitution to apply to as many instances of the
+search pattern as occur in the word or words it is found in. Note that
+.Ql 1
+and
+.Ql g
+are orthogonal; the former specifies whether multiple words are
+potentially affected, the latter whether multiple substitutions can
+potentially occur within each affected word.
.It Cm E
Replaces each word in the variable with its suffix.
.It Cm H