From owner-freebsd-questions Thu Dec 26 15:21:53 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3D1EC37B401 for ; Thu, 26 Dec 2002 15:21:52 -0800 (PST) Received: from sccrmhc02.attbi.com (sccrmhc02.attbi.com [204.127.202.62]) by mx1.FreeBSD.org (Postfix) with ESMTP id 834F943EA9 for ; Thu, 26 Dec 2002 15:21:51 -0800 (PST) (envelope-from freebsd-questions-local@be-well.no-ip.com) Received: from be-well.ilk.org (lowellg.ne.client2.attbi.com[24.147.188.198]) by sccrmhc02.attbi.com (sccrmhc02) with ESMTP id <20021226232150002000eltpe>; Thu, 26 Dec 2002 23:21:50 +0000 Received: from be-well.ilk.org (lowellg.ne.client2.attbi.com [24.147.188.198] (may be forged)) by be-well.ilk.org (8.12.6/8.12.6) with ESMTP id gBQNLoQc018696; Thu, 26 Dec 2002 18:21:50 -0500 (EST) (envelope-from freebsd-questions-local@be-well.no-ip.com) Received: (from lowell@localhost) by be-well.ilk.org (8.12.6/8.12.6/Submit) id gBQNLnDX018693; Thu, 26 Dec 2002 18:21:49 -0500 (EST) X-Authentication-Warning: be-well.ilk.org: lowell set sender to freebsd-questions-local@be-well.ilk.org using -f To: Jonah Sherman Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Partial Buildworld Possible? References: <20021226161701.GA20462@rootbox> From: Lowell Gilbert Date: 26 Dec 2002 18:21:49 -0500 In-Reply-To: <20021226161701.GA20462@rootbox> Message-ID: <44smwk5pte.fsf@be-well.ilk.org> Lines: 17 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Jonah Sherman writes: > Hi, I would appreciate it if someone could explain why buildworld must > rebuild _everything_, even if there is one small change(or no changes). > For example, if I do the initial buildworld, then cvsup and see that code for > /bin/ls has changed, then buildworld again, it recompiles everything. > Shouldn't buildworld only recompile /bin/ls? > Even if *nothing* changes, and I were to just run make buildworld two times > consecutively, it still recompiles everything. Could someone explain why > this is the behavior instead of just compiling what has changed? The reason is that there's a kind of dependency involved that make(1) isn't good at handling. When the compiler toolchain changes, make won't notice, so it always rebuilds the tools first and then rebuilds the world with the new tools. If you don't want it to do that, you can use the fact that your brain is smarter than make, and rebuild just the part you want (or use NOCLEAN, or other options) for that one shot. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message