Hi Dmitry

> '%-sim: %' is the intended implicit rule that make does not look for
> because rr1-sim is phony.

Ah, yes i missed that the pattern rule was also an implicit rule.

> There is no such thing as 'marking the addtional rule as PHONY'.
> As soon as 'PHONY: $(PHON2)' line is removed rr1-sim is no longer a

Yes, i meant the target, not the rule.

> phony target and make finds
> implicit rule %-sim: % to build this target.

OK, thanks for clearing this up.

I also found this in the docs:

"The implicit rule search (see Implicit Rules) is skipped for .PHONY
targets. This is why declaring a target as .PHONY is good for
performance, even if you are not worried about the actual file
existing".

Thanks for the help.

/pedro


  • Phony targets... christian
    • Re: Phon... Dmitry Goncharov via Bug reports and discussion for GNU make
      • Re: ... Peter Dons Tychsen
      • Re: ... Dmitry Goncharov via Bug reports and discussion for GNU make
        • ... Peter Dons Tychsen

Reply via email to