[Top][All Lists]

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

Re: trouble with order rules in implicit rules

From: Boris Kolpackov
Subject: Re: trouble with order rules in implicit rules
Date: Fri, 16 Apr 2004 18:11:05 +0000 (UTC)
User-agent: nn/6.6.5+RFC1522

"Paul D. Smith" <address@hidden> writes:

> >    The order in which pattern rules appear in the makefile is important
> > since this is the order in which they are considered.  Of equally
> > applicable rules, only the first one found is used.
> I guess that's a little confusing, since "equally applicable" isn't
> defined anywhere.  But, it refers to the last sentence:
> > Note however, that a rule whose prerequisites actually exist or are
> > mentioned always takes priority over a rule with prerequisites that must
> > be made by chaining other implicit rules.
> Anyway, the short answer is that for basic pattern rules (not chained
> pattern rules) the first one appearing in the makefile is always used.

I am planning to implement a "shortest stem" matching for equally 
applicable implicit rules. Do you think that would be good definition
of a "better-matching"?


reply via email to

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