bug-make
[Top][All Lists]
Advanced

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

Re: Problem with absolute path


From: Paul D. Smith
Subject: Re: Problem with absolute path
Date: Tue, 20 Jul 2004 11:40:32 -0400

%% Boris Kolpackov <address@hidden> writes:

  bk> If /tmp/out exists (/tmp/out/bin and /tmp/out/obj do not exist)
  bk> then everything works file. When /tmp/out does not exist make
  bk> fails. I have to idea about the logic behind this.

I assume you meant to say "no idea" :).

Anyway, the idea was certainly performance: if a directory doesn't exist
and there are no rules in your makefile to create it (that is, there are
no targets that allow make to create that directory), then in make's
model it can never exist, so removing it from the search path is a
performance improvement.  For directories that are often not there
(think the CVS or RCS subdirectories, etc. which not only aren't there
much of the time, but are associated with "match anything" rules) this
can be significant.

Anyway, that's the only reason I can think of.


However, this check was causing more problems than it was worth (to me)
and I've already removed it from the next release.

-- 
-------------------------------------------------------------------------------
 Paul D. Smith <address@hidden>          Find some GNU make tips at:
 http://www.gnu.org                      http://make.paulandlesley.org
 "Please remain calm...I may be mad, but I am a professional." --Mad Scientist




reply via email to

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