From owner-freebsd-current Wed Feb 22 20:48:50 1995 Return-Path: current-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.9/8.6.6) id UAA20495 for current-outgoing; Wed, 22 Feb 1995 20:48:50 -0800 Received: from eel.dataplex.net (EEL.DATAPLEX.NET [199.183.109.245]) by freefall.cdrom.com (8.6.9/8.6.6) with ESMTP id UAA20489; Wed, 22 Feb 1995 20:48:47 -0800 Received: from [199.183.109.242] (cod [199.183.109.242]) by eel.dataplex.net (8.6.9/8.6.9) with SMTP id WAA21292; Wed, 22 Feb 1995 22:48:16 -0600 X-Sender: wacky@shark.dataplex.net Message-Id: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Date: Wed, 22 Feb 1995 22:48:17 -0600 To: "Jordan K. Hubbard" From: rkw@dataplex.net (Richard Wackerbarth) Subject: Building World from Read-Only Media Cc: current@FreeBSD.org, phk@ref.tfs.com, rgrimes@gndrsh.aac.dev.com Sender: current-owner@FreeBSD.org Precedence: bulk OK, guys! I have some new mk files that are much "cleaner" for our make world. I have identified 4 strategies for the placement of object files. If one of these will not please you, SPEAK NOW, or hold your peace. Assume that we are compiling /home/my/src/prog/cfile.c Case 1. Just put the object next to its source /home/my/src/prog/cfile.o Case 2. Put the objects in a directory /home/my/src/prog/obj/cfile.o Case 3. Global object store /usr/obj/home/my/src/prog/cfile.o Case 4. Local object tree /home/my/obj/prog/cfile.o Right now, the "world" uses links to make case 3 look like case 2. My inclination is to go to case 4 instead. To build my own object tree from read-only media mkdir /home/my ln -s /cdrom/some.version/Makefile /home/my ln -s /cdrom/some.version/src /home/my cd /home/my make I am presently finishing up to procedures necessary to allow links in a source tree to point to directory trees rather than each file. It is easy unless you want to cd down in the tree and "make" some subtree rather than making the whole tree. However, I think I can do it provided you supply a DESTDIR in advance. Can I write a makefile rule that can export an env variable. What I would like to do is cd /top/of/tree make plant-my-root cd down/the/tree and have DESTDIR=/top/of/tree ---- Richard Wackerbarth rkw@dataplex.net