On 2020-11-17 02:49, Budi wrote:
I found in a Makefile the default target:

all: all-yes

but the text editor search won't find all-yes except in .PHONY
How is it explained ?

Maybe the yes part comes from a variable, like all-$(VAR).

Search for just "all-" or "all".

E.g.:

  all-$(VAR): a b c

If VAR is yes, then this makes the phony target all-yes require a b c.

If VAR is blank or something else, then this defines a disconnected
rule no related to all-yes.  all-yes is a phony target that is
considered an up-to-date object if used as a prerequisite and so there
is nothing to do for "all" if "all-yes" has no prerequisites or
build recipe.



Reply via email to