From owner-freebsd-arch Mon Sep 3 10:46:18 2001 Delivered-To: freebsd-arch@freebsd.org Received: from prism.flugsvamp.com (cb58709-a.mdsn1.wi.home.com [24.17.241.9]) by hub.freebsd.org (Postfix) with ESMTP id 169F637B40B for ; Mon, 3 Sep 2001 10:46:16 -0700 (PDT) Received: (from jlemon@localhost) by prism.flugsvamp.com (8.11.0/8.11.0) id f83Hjkh65993; Mon, 3 Sep 2001 12:45:46 -0500 (CDT) (envelope-from jlemon) Date: Mon, 3 Sep 2001 12:45:46 -0500 From: Jonathan Lemon To: Marcel Moolenaar Cc: Duncan Barclay , Warner Losh , arch@FreeBSD.ORG Subject: Re: cvs commit: src/share/mk sys.mk Message-ID: <20010903124546.B64607@prism.flugsvamp.com> References: <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> <20010903104141.E554@dhcp01.pn.xcllnt.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0pre2i In-Reply-To: <20010903104141.E554@dhcp01.pn.xcllnt.net> 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 10:41:41AM -0700, Marcel Moolenaar wrote: > 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. I don't particularly like this; I would prefer that things are self contained. Having the developer specify a searchpath themselves is error prone, especially when dealing with multiple source trees. -- Jonathan To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message