bug-make
[Top][All Lists]
Advanced

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

Re: Is VPATH Iterative?


From: Paul D. Smith
Subject: Re: Is VPATH Iterative?
Date: Mon, 21 Jan 2002 21:51:01 -0500

%% Jim Tison <address@hidden> writes:

  jt> A colleague of mine asks an interesting question about VPATH. He
  jt> claims that, within the execution of a single makefile, he has
  jt> just made an object within a directory path named as one of the
  jt> VPATH operands (not cwd). The very next rule within that same
  jt> makefile states a dependency on that object, and make cannot find
  jt> it through VPATH.

VPATH, generally, cannot be used to locate derived objects.  It can
_only_ be safely used to locate source objects--in particular, source
files or other files which the makefile does not itself create, but
builds things from.

I suggest you take a look at my web site below; there is some
information there on how VPATH can, and cannot, be used that might shed
some light on your situation.

-- 
-------------------------------------------------------------------------------
 Paul D. Smith <address@hidden>          Find some GNU make tips at:
 http://www.gnu.org                      http://www.paulandlesley.org/gmake/
 "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]