Follow-up Comment #2, bug #58639 (project make): Paul, do you think we can describe this scenario this explicitly in the doc? E.g.
diff --git a/doc/make.texi b/doc/make.texi index 733c0b9..9c625d7 100644 --- a/doc/make.texi +++ b/doc/make.texi @@ -10342,9 +10342,9 @@ A pattern rule can be used to build a given file only if there is a target pattern that matches the file name, @emph{and} all prerequisites in that rule either exist or can be built. The rules you write take precedence over those that are built in. Note however, -that a rule whose prerequisites actually exist or are mentioned always -takes priority over a rule with prerequisites that must be made by -chaining other implicit rules. +that a rule whose prerequisites actually exist or are mentioned or +which has no prerequisites always takes priority over a rule with +prerequisites that must be made by chaining other implicit rules. @cindex stem, shortest It is possible that more than one pattern rule will meet these _______________________________________________________ Reply to this item at: <https://savannah.gnu.org/bugs/?58639> _______________________________________________ Message sent via Savannah https://savannah.gnu.org/