From owner-freebsd-hackers@FreeBSD.ORG Thu Oct 28 10:53:47 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1F68F16A4D1 for ; Thu, 28 Oct 2004 10:53:47 +0000 (GMT) Received: from gandalf.online.bg (gandalf.online.bg [217.75.128.9]) by mx1.FreeBSD.org (Postfix) with SMTP id 4941643D41 for ; Thu, 28 Oct 2004 10:53:45 +0000 (GMT) (envelope-from roam@ringlet.net) Received: (qmail 7123 invoked from network); 28 Oct 2004 10:53:40 -0000 Received: from unknown (HELO straylight.ringlet.net) (217.75.134.254) by gandalf.online.bg with SMTP; 28 Oct 2004 10:53:40 -0000 Received: (qmail 2143 invoked by uid 1000); 28 Oct 2004 10:51:00 -0000 Date: Thu, 28 Oct 2004 13:51:00 +0300 From: Peter Pentchev To: Dan Strick Message-ID: <20041028105100.GB975@straylight.m.ringlet.net> Mail-Followup-To: Dan Strick , freebsd-hackers@freebsd.org, dan@mist.nodomain References: <200410281023.i9SAN27L001781@mist.nodomain> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="xgyAXRrhYN0wYx8y" Content-Disposition: inline In-Reply-To: <200410281023.i9SAN27L001781@mist.nodomain> User-Agent: Mutt/1.5.6i cc: freebsd-hackers@freebsd.org cc: dan@mist.nodomain Subject: Re: questionable feature in FreeBSD pmake X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 28 Oct 2004 10:53:47 -0000 --xgyAXRrhYN0wYx8y Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Oct 28, 2004 at 03:23:02AM -0700, Dan Strick wrote: > I just spent a *very* frustrating hour trying to figure out why the > FreeBSD make program was invoking all commands to make things in a > subdirectory named "obj". I eventually discovered this gem in the > make man page: [snip] > .OBJDIR A path to the directory where the targets are built. [snip] > 1. ${MAKEOBJDIRPREFIX}/`pwd` > 2. ${MAKEOBJDIR} > 3. obj.${MACHINE} > 4. obj > 5. /usr/obj/`pwd` >=20 > I believe this feature is a real botch because it is magic, unintuitive, > and so *exceedingly* easy to invoke by mistake. Actually, this feature lies at the base of the FreeBSD base system build infrastructure, and it is pretty much The Feature that allows us to build from read-only and/or NFS-mounted sources shared among wide swarms of machines :) [snip] > This feature is not mentioned in the pmake tutorial found in > /usr/share/doc/psd/12.make. Is it a FreeBSD-ism? A quick glance at other BSD's make(1) manual pages, all available from , seems to show that .OBJDIR and MAKEOBJDIRPREFIX handling is present in all of them, and OpenBSD's make(1) manual lists the same search order, including 'obj.${MACHINE}' and 'obj'. G'luck, Peter --=20 Peter Pentchev roam@ringlet.net roam@cnsys.bg roam@FreeBSD.org PGP key: http://people.FreeBSD.org/~roam/roam.key.asc Key fingerprint FDBA FD79 C26F 3C51 C95E DF9E ED18 B68D 1619 4553 I am jealous of the first word in this sentence. --xgyAXRrhYN0wYx8y Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.6 (FreeBSD) iD8DBQFBgM8U7Ri2jRYZRVMRAgYmAJ0cMqxY2iazcvLCVR3IogCUJVQ/tQCeMqsI 420A6u8zttsfgsQ4wD3bvBc= =HlnN -----END PGP SIGNATURE----- --xgyAXRrhYN0wYx8y--