help-make
[Top][All Lists]
Advanced

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

Re: Using the target of a pattern rule as a prerequisite


From: Noel Yap
Subject: Re: Using the target of a pattern rule as a prerequisite
Date: Fri, 04 Jun 2004 09:46:09 -0400
User-agent: Mozilla Thunderbird 0.5 (Windows/20040212)

Paul D. Smith wrote:

%% Boris Kolpackov <address@hidden> writes:

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

  >> In general it's not a good idea (IMO) to depend on a directory
  >> anyway: it will cause your code to rebuild in many situations where
  >> it's not necessary.

  bk> I think using order-only dependency on a directory is not such a bad
  bk> idea.

Yes, that's true.  Of course then he has the original problem of
obtaining the directory name in the prerequisite list.  I realize you
have a solution for that in your patches as well :-).

My solution to this, although IMHO not as elegant as Boris's patch, was to have 
something like:

        $(OBJECTS): | $(dir $(OBJECTS))

Noel




reply via email to

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