help-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Confusion on: all: all-yes


From: Kaz Kylheku (gmake)
Subject: Re: Confusion on: all: all-yes
Date: Tue, 17 Nov 2020 03:25:22 -0800
User-agent: Roundcube Webmail/0.9.2

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

[Prev in Thread] Current Thread [Next in Thread]