bug-make
[Top][All Lists]
Advanced

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

Re: Inconsistent VPATH behavior ..


From: Harsha Kalidindi
Subject: Re: Inconsistent VPATH behavior ..
Date: Mon, 10 Mar 2003 17:54:44 -0500

Paul:

%% Harsha Kalidindi <address@hidden> writes:

  >> GNU make works exactly as I've described above: first it looks for the
  >> pathname exactly as it is given in the makefile.

  hk> Breakthrough. No more failure to communicate. This is the nub of
  hk> the issue ..

  >> If that doesn't exist, _then_ it appends the pathname that is given  in
  >> the makefile onto each entry in VPATH, in order, and looks for that.

  hk>          VPATH=/u/p/src
  hk>          install: ../install/scripts/foo
  hk>                  $(INSTALL) ..

  hk> Command run in '/u/user/src'. If
  hk> /u/user/src/../install/scripts/foo does not exist, I would expect
  hk> it to run the command instead of looking into
  hk> /u/p/src/../install/scripts/foo ..

Well, that's actually the entire purpose of VPATH: to tell make where
else to look if it can't find the prerequisite by the pathname that the
makefile provides.  If you don't want that behavior then you will have
to stop using VPATH.  Presumably there's some other reason you need it,
and the above is just an unwanted side-effect?

Yes. We need VPATH for it to actually find source files when they do not exist on a sparse shadow. This is a side-effect of that ..

The other option is to use the "vpath <pattern>" form to restrict the
VPATH lookup to only a subset of all the prerequisites in the makefile.

Now we know it is not bizarre behavior. We will just live with it till we modify how we set VPATH ..

Regards,
Harsha

address@hidden 212.762.4165

This communication is intended for the addressee(s) and may contain confidential and legally privileged information. We do not waive confidentiality or privilege by mis-transmission. If you have received this communication in error, any use, dissemination, printing or copying is strictly prohibited; please destroy all electronic and paper copies and notify the sender immediately.





reply via email to

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