Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!csd4.csd.uwm.edu!cs.utexas.edu!usc!bloom-beacon!athena.mit.edu!jik From: jik@athena.mit.edu (Jonathan I. Kamens) Newsgroups: comp.unix.questions Subject: Re: What does VPATH do for make? Message-ID: <14019@bloom-beacon.MIT.EDU> Date: 3 Sep 89 01:51:35 GMT References: <20767@adm.BRL.MIL> <2642@trantor.harris-atd.com> Sender: daemon@bloom-beacon.MIT.EDU Reply-To: jik@athena.mit.edu (Jonathan I. Kamens) Organization: Massachusetts Institute of Technology Lines: 19 In article <2642@trantor.harris-atd.com> bbadger@x102c.harris-atd.com (Badger BA 64810) writes: >Does anyone know for sure what VPATH is for? Do your man pages reveal all? Our man page for make(1) says: Another special macro is `VPATH'. The `VPATH' macro should be set to a list of directories separated by colons. When make searches for a file as a result of a dependency rela- tion, it will first search the current directory and then each of the directories on the `VPATH' list. If the file is found, the actual path to the file will be used, rather than just the filename. If `VPATH' is not defined, then only the current directory is searched. Jonathan Kamens USnail: MIT Project Athena 11 Ashford Terrace jik@Athena.MIT.EDU Allston, MA 02134 Office: 617-253-4261 Home: 617-782-0710