]> git.ipfire.org Git - thirdparty/make.git/commitdiff
* doc/make.texi (Phony Targets): [SV 58961] Clarify pattern handling
authorPaul Smith <psmith@gnu.org>
Sun, 6 Dec 2020 20:21:23 +0000 (15:21 -0500)
committerPaul Smith <psmith@gnu.org>
Sun, 6 Dec 2020 20:21:23 +0000 (15:21 -0500)
doc/make.texi

index d6fd1d03e916d73c7e28bfeda0bc8002902dfd78..62103efb5866ad7400cba0a733828e95002c154e 100644 (file)
@@ -2720,6 +2720,12 @@ clean:
 Once this is done, @samp{make clean} will run the recipe regardless of
 whether there is a file named @file{clean}.
 
+Prerequisites of @code{.PHONY} are always interpreted as literal
+target names, never as patterns (even if they contain @samp{%}
+characters).  To always rebuild a pattern rule consider using a
+``force target'' (@pxref{Force Targets, ,Rules without Recipes or
+Prerequisites}).
+
 Phony targets are also useful in conjunction with recursive
 invocations of @code{make} (@pxref{Recursion, ,Recursive Use of @code{make}}).
 In this situation the makefile will often contain a variable which