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