Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!uunet!ns-mx!ccad.uiowa.edu!emcguire From: emcguire@ccad.uiowa.edu (Ed McGuire) Newsgroups: comp.unix.programmer Subject: Re: Makefile woes Message-ID: <1991May31.144948.7051@ccad.uiowa.edu> Date: 31 May 91 14:49:48 GMT References: Organization: CAD-Research, U. of Iowa, Iowa City, Iowa Lines: 20 In article dowding@ai.sri.com (John Dowding) writes: >Now, when they do a make to test their changes, I want the Makefile >to prefer a local copy over the copy in the default directory, >otherwise to use the default file if no local copy exists. > >I am running Sun Unix 4.1.1. Some versions of make(1) support the VPATH macro. VPATH specifies a list of directories which make(1) should search for dependency files, if the dependency is not located in the current working directory. SunOS 4.0 does not have VPATH. I can't say whether 4.1 does. But GNU Make has VPATH. You might consider installing that as your default make. -- peace. -- Ed "Over here, Bones! This man's dying!" "Damn it, Jim! I'm a doctor, not a . . . What did you say?"