Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!seismo!sundc!texsun!sun!gorodish!guy From: guy%gorodish@Sun.COM (Guy Harris) Newsgroups: comp.unix.wizards Subject: Re: Multiple machine binaries from a single set of sources Message-ID: <26384@sun.uucp> Date: Mon, 24-Aug-87 14:18:45 EDT Article-I.D.: sun.26384 Posted: Mon Aug 24 14:18:45 1987 Date-Received: Tue, 25-Aug-87 07:16:51 EDT References: <8957@brl-adm.ARPA> <80@cunixc.columbia.edu> Sender: news@sun.uucp Lines: 14 > The idea is good, but there's an easier way to manage it if you have > the 4.3 or System V make - use the VPATH macro to specify an alternate > path to get sources from. In the above case, for each bin dir (e.g. > ../sun-2, etc.), have a makefile with following line: > VPATH=../src Beware: VPATH not only affects where "make" finds *source* files, it also affects where it finds *target* files. Don't put any binary files in the "../src" directory, or it will cheerfully use those instead of building versions in the current directory. (Tested both with the 4.3BSD "make" and the SunOS 3.2 "make".) Guy Harris {ihnp4, decvax, seismo, decwrl, ...}!sun!guy guy@sun.com