dowding@ai.sri.com (John Dowding) (05/30/91)
I want to do something that ought to be simple, but I cannot find a way to do it. I have a project that is being developed by several programmers. I want to keep the "official" source in one directory, and let the programmers work on changes in their own local directories. I want to use just a single makefile (most of the programmers aren't Unix proficient enough to maintain their own makefiles). I want them to be able to work by copying the Makefile to their own directory, and then check out the file that they want to modify into their own directory. 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. Thanks in advance, -- John Dowding dowding@ai.sri.com
emcguire@ccad.uiowa.edu (Ed McGuire) (05/31/91)
In article <DOWDING.91May29155056@palm.ai.sri.com> 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?"