I think you should want to declare such a target as .PHONY, agreed Paul? From: Help-make <help-make-bounces+mec=stowers....@gnu.org> On Behalf Of Paul Smith Sent: Tuesday, January 12, 2021 13:29 To: Tomas Nordin <tom...@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.