From dd1980426e9d6a8061f0b269a246261b140977dc Mon Sep 17 00:00:00 2001 From: Paul Smith Date: Sun, 3 Dec 2023 18:28:25 -0500 Subject: [PATCH] * doc/make.texi (Text Functions): [SV 64818] Remove redundant text --- doc/make.texi | 48 +----------------------------------------------- 1 file changed, 1 insertion(+), 47 deletions(-) diff --git a/doc/make.texi b/doc/make.texi index 35ab13af..47aabdde 100644 --- a/doc/make.texi +++ b/doc/make.texi @@ -7559,53 +7559,7 @@ produces the value @samp{x.c.o bar.o}. Substitution references (@pxref{Substitution Refs, ,Substitution References}) are a simpler way to get the effect of the @code{patsubst} -function: - -@example -$(@var{var}:@var{pattern}=@var{replacement}) -@end example - -@noindent -is equivalent to - -@example -$(patsubst @var{pattern},@var{replacement},$(@var{var})) -@end example - -The second shorthand simplifies one of the most common uses of -@code{patsubst}: replacing the suffix at the end of file names. - -@example -$(@var{var}:@var{suffix}=@var{replacement}) -@end example - -@noindent -is equivalent to - -@example -$(patsubst %@var{suffix},%@var{replacement},$(@var{var})) -@end example - -@noindent -For example, you might have a list of object files: - -@example -objects = foo.o bar.o baz.o -@end example - -@noindent -To get the list of corresponding source files, you could simply write: - -@example -$(objects:.o=.c) -@end example - -@noindent -instead of using the general form: - -@example -$(patsubst %.o,%.c,$(objects)) -@end example +function. @item $(strip @var{string}) @cindex stripping whitespace