From owner-freebsd-arch Mon Sep 3 10:41:59 2001 Delivered-To: freebsd-arch@freebsd.org Received: from kayak.xcllnt.net (209-128-86-226.bayarea.net [209.128.86.226]) by hub.freebsd.org (Postfix) with ESMTP id 34B7A37B405 for ; Mon, 3 Sep 2001 10:41:43 -0700 (PDT) Received: from dhcp01.pn.xcllnt.net (dhcp01.pn.xcllnt.net [192.168.4.201]) by kayak.xcllnt.net (8.11.4/8.11.4) with ESMTP id f83Hfg600706; Mon, 3 Sep 2001 10:41:42 -0700 (PDT) (envelope-from marcel@kayak.pn.xcllnt.net) Received: (from marcel@localhost) by dhcp01.pn.xcllnt.net (8.11.6/8.11.3) id f83Hfff01002; Mon, 3 Sep 2001 10:41:41 -0700 (PDT) (envelope-from marcel) Date: Mon, 3 Sep 2001 10:41:41 -0700 From: Marcel Moolenaar To: Duncan Barclay Cc: Warner Losh , arch@FreeBSD.ORG Subject: Re: cvs commit: src/share/mk sys.mk Message-ID: <20010903104141.E554@dhcp01.pn.xcllnt.net> References: <20010831131627.A86427@xor.obsecurity.org> <200108311118.f7VBIO124920@freefall.freebsd.org> <20010831142958.A60910@sunbay.com> <20010831141746.A1809@zerogravity.kawo2.rwth-aachen.d> <20010831084811.B95710@dragon.nuxi.com> <20010831184945.A16872@fump.kawo2.rwth-aachen.de> <20010831100216.A17397@dragon.nuxi.com> <20010831193947.A17086@fump.kawo2.rwth-aachen.de> <200109030211.f832BCh22404@harmony.village.org> <005401c13461$37b78290$c66020c2@pc598cam> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <005401c13461$37b78290$c66020c2@pc598cam> User-Agent: Mutt/1.3.21i Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Mon, Sep 03, 2001 at 11:13:55AM +0100, Duncan Barclay wrote: > This can be done in make already but you do need code stuff in a > Makefile.inc to support it: > http://www.ragnet.demon.co.uk/RM/RM.makefile > This walks up a tree until it finds a toplevel. Why not revert the problem. Instead of having a source tree find it's own root and pull in configuration files, why not have the user specify roots by means of a "searchpath". This concept is extensible by specify which config file to pull in depending on the search path. The top-level makefile can define the searchpath for it knows the root (obviously) so that it doesn't impact people who only build from the toplevel. Developers building directly in subdirectories need to define the "searchpath" themselves. There's is a one-time inconvenience for people who need to setup their searchpath, but it avoids the NxM-time inconvenience of having every makefile try to find the root of the tree for every build that is initiated. The whole idea of finding one's root sounds too costly. Just a thought... > ----- Original Message ----- > From: "Warner Losh" > To: "Kris Kennaway" > Cc: > Sent: Monday, September 03, 2001 3:11 AM > Subject: Re: cvs commit: src/share/mk sys.mk > > > > Actually, now that I think about this, I think that it would be *EASY* > > to support in make. > > > > .include-up "conf/world.conf" > > > > and make would look in ., .., ../.., etc until it finds > > conf/world.conf. It would then set some variable so conf/world.conf > > would know where the top of the tree was (which would make things in > > the tree a little easier). > > > > Of course, this also requires changing all Makefiles in the tree, but > > that's easy to do. > > > > Warner > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > > with "unsubscribe freebsd-arch" in the body of the message > > > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-arch" in the body of the message -- Marcel Moolenaar USPA: A-39004 marcel@xcllnt.net To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message