Date: Wed, 22 Feb 1995 22:48:17 -0600 From: rkw@dataplex.net (Richard Wackerbarth) To: "Jordan K. Hubbard" <jkh@freefall.cdrom.com> Cc: current@FreeBSD.org, phk@ref.tfs.com, rgrimes@gndrsh.aac.dev.com Subject: Building World from Read-Only Media Message-ID: <v0211010dab71b1e212f8@[199.183.109.242]>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?v0211010dab71b1e212f8>