help-make
[Top][All Lists]
Advanced

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

RE: Parallel problem


From: Cook, Malcolm
Subject: RE: Parallel problem
Date: Tue, 12 Jan 2021 19:36:00 +0000

I think you should want to declare such a target as .PHONY, agreed Paul?

From: Help-make <help-make-bounces+mec=stowers.org@gnu.org> On Behalf Of Paul 
Smith
Sent: Tuesday, January 12, 2021 13:29
To: Tomas Nordin <tomasn@posteo.net>; help-make@gnu.org
Subject: Re: Parallel problem

ATTENTION: This email came from an external source. Do not open attachments or 
click on links from unknown senders or unexpected emails.


On Tue, 2021-01-12 at 19:50 +0100, Tomas Nordin wrote:
> > If you want to be able to run "make M2-Planet" you can create a
> > shortcut like this:
> > M2-Planet: bin/M2-Planet
>
> OK! Is that understood as a shortcut by make? So the "MUST ALWAYS
> build the target" does not apply in this case?

That target has no recipe, so there's nothing to build the target. I
guess a more detailed way to say it would be that any rule that builds
an actual target file on the disk must always build the one that the
rule says it will build.

If you have a target that doesn't actually create a file (like "all"
for example, or this shortcut target) then the rule that the created
file must match the target doesn't apply.

reply via email to

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