Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!hellgate.utah.edu!helios.ee.lbl.gov!nosc!logicon.arpa!trantor.harris-atd.com!x102c!bbadger From: bbadger@x102c.harris-atd.com (Badger BA 64810) Newsgroups: comp.unix.questions Subject: What does VPATH do for make? Message-ID: <2642@trantor.harris-atd.com> Date: 2 Sep 89 15:04:06 GMT References: <20767@adm.BRL.MIL> Sender: news@trantor.harris-atd.com Reply-To: bbadger@x102c.harris-atd.com (Badger BA 64810) Organization: Harris GISD, Melbourne, FL Lines: 37 In article <20767@adm.BRL.MIL> rbj@dsys.ncsl.nist.gov (Root Boy Jim) writes: [lots deleted related to previous thread] >Another way to do it is by using the `arch' command. >all clean install: > (cd `arch`; make -f ../Makefile ARCH=-D`arch | tr a-z A-Z` real$@) >Of course, there is also the VPATH variable, which may or may not work. > > Root Boy Jim and > the GNU Bohemians [cute ^^^^^^^^^^^^^] I remember somthing like VPATH from an article on ``build'', a make-like utility which used an environment variable to specify a list of directories to search for files. This allowed the contstruction of ``views'' by linking or copying files from the other directory into the current directory just for the duration of the make. Is this now a capability of make? I don't find it in the man page: % man make | ul |grep VPATH man make | ul |grep VPATH On the other hand, make seems to know about VPATH: % which make /bin/make % strings /bin/make |grep PATH VPATH PATH % From a quick look at the V3.2.1 source code for make, I think it does Does anyone know for sure what VPATH is for? Do your man pages reveal all? ----- - - - - - - - ---- Bernard A. Badger Jr. 407/984-6385 |``Get a LIFE!'' -- J.H. Conway Harris GISD, Melbourne, FL 32902 |Buddy, can you paradigm? Internet: bbadger%x102c@trantor.harris-atd.com|'s/./&&/g' Tom sed expansively.