]> git.ipfire.org Git - thirdparty/make.git/commitdiff
* doc/make.texi (Pattern Rules): Clarify that rules must have recipes.
authorPaul Smith <psmith@gnu.org>
Thu, 28 Mar 2024 23:08:20 +0000 (19:08 -0400)
committerPaul Smith <psmith@gnu.org>
Thu, 28 Mar 2024 23:14:25 +0000 (19:14 -0400)
doc/make.texi

index ae01609073ce56bd250376492e070ca671baedec..cb7420d0f36da52a70150cf7986cdad472792199 100644 (file)
@@ -10716,8 +10716,13 @@ pattern for matching file names; the @samp{%} can match any nonempty
 substring, while other characters match only themselves.  The prerequisites
 likewise use @samp{%} to show how their names relate to the target name.
 
-Thus, a pattern rule @samp{%.o : %.c} says how to make any file
-@file{@var{stem}.o} from another file @file{@var{stem}.c}.
+Thus, a pattern rule @samp{%.o : %.c ; @var{recipe}} describes a process for
+building any file @file{@var{stem}.o} from another file @file{@var{stem}.c}
+using the recipe @var{recipe}.
+
+It is not possible to create a pattern rule that does not have a recipe;
+omitting the recipe removes that pattern rule instead (@pxref{Canceling Rules,
+,Canceling Implicit Rules}).
 
 Note that expansion using @samp{%} in pattern rules occurs
 @strong{after} any variable or function expansions, which take place