Mail Archives: djgpp/2000/11/05/01:34:12
On Sun, 5 Nov 2000, Jerzy Klejnowski wrote:
> The difference arises from the fact, that there was no header file in
> current directory
Then what you saw is expected behavior.
> However, I don't understand why `make' chooses another rule for building
> target depending on existence of some prerequisites.
Because that's how pattern rules work: if the prerequisites don't
exist, the rule is marked invalid, and Make tries to find a different
rule that succeeds. In this case, it finds a built-in rule, so it uses
it.
This is so to allow you to have several pattern rules with different
prerequisites that build the same target(s).
- Raw text -