Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!seismo!mimsy!umd5!brl-adm!adm!PEREIRA@csli.stanford.edu From: PEREIRA@csli.stanford.edu (Fernando Pereira) Newsgroups: comp.unix.wizards Subject: Multiple machine binaries from a single set of sources Message-ID: <8957@brl-adm.ARPA> Date: Sat, 22-Aug-87 20:24:11 EDT Article-I.D.: brl-adm.8957 Posted: Sat Aug 22 20:24:11 1987 Date-Received: Sun, 23-Aug-87 13:42:32 EDT Sender: news@brl-adm.ARPA Lines: 23 Much easier than all the solutions proposed so far is what I have been doing successfully for quite a while on Suns. Just have one directory hierarchy for sources (eg. ../src) and parallel hierarchies (eg. ../sun-2, ../sun-3) for binaries. Create symbolic links in the machine type hierarchies to all the source files in the source hierarchy,eg. cd ../sun-2 foreach i (../src/[Mm]akefile ../src/*.[ch]) echo `basename $i` ln -s $i end A "make" in any of the machine-type directories will leave the binaries in that directory. Because NFS by default does not share root ownership and permissions, it is convenient to have all the files in the various hierarchies above owned by a shared user (eg. "bin") so that one can login onto machines of different types to make the binaries for that type. Fernando Pereira pereira@ai.sri.com -------