From owner-freebsd-questions Tue Oct 1 14:12:36 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 A954A37B404 for ; Tue, 1 Oct 2002 14:12:35 -0700 (PDT) Received: from mailsrv.otenet.gr (mailsrv.otenet.gr [195.170.0.5]) by mx1.FreeBSD.org (Postfix) with ESMTP id 49EED43E6A for ; Tue, 1 Oct 2002 14:12:34 -0700 (PDT) (envelope-from keramida@ceid.upatras.gr) Received: from hades.hell.gr (patr530-b234.otenet.gr [212.205.244.242]) by mailsrv.otenet.gr (8.12.4/8.12.4) with ESMTP id g91LCONM019451; Wed, 2 Oct 2002 00:12:25 +0300 (EEST) Received: from hades.hell.gr (hades [127.0.0.1]) by hades.hell.gr (8.12.6/8.12.6) with ESMTP id g91LCRpc002429; Wed, 2 Oct 2002 00:12:27 +0300 (EEST) (envelope-from keramida@ceid.upatras.gr) Received: (from keramida@localhost) by hades.hell.gr (8.12.6/8.12.6/Submit) id g91LCRKu002428; Wed, 2 Oct 2002 00:12:27 +0300 (EEST) (envelope-from keramida@ceid.upatras.gr) Date: Wed, 2 Oct 2002 00:12:26 +0300 From: Giorgos Keramidas To: "Gary W. Swearingen" Cc: questions@freebsd.org Subject: Re: Q: continuing interrupted 'make buildworld' Message-ID: <20021001211225.GA614@hades.hell.gr> References: <20021001013253.GJ1535@hades.hell.gr> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-PGP-Fingerprint: C1EB 0653 DB8B A557 3829 00F9 D60F 941A 3186 03B6 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 On 2002-10-01 13:48, "Gary W. Swearingen" wrote: > Giorgos Keramidas writes: > > On 2002-09-30 17:31, John Mills wrote: > > > I would like to restart a 'make buildworld' without deleting or recreating > > > any unnecesary files (i.e., after messing about in the source tree). > > > > > > How should I do this? (Is this the effect of 'make -DNOCLEAN buildworld'?) > > > > That should work. It will rebuild a few things that you could > > probably avoid, but in general it works fine. > > IIRC, when I've done "make buildkernel" (maybe "buildworld") a second > time (eg, to do benchmarks with two BIOS settings), the thing rebuilt > the whole kernel again. I've always wondered why. I thought "make" > was supposed to use old files when possible. The buildkernel target will run a "make clean" before building the new kernel, in an effort to be on the safe side. This will delete all the old kernel's object files (anything that had been compiled before the interruption took place). Thus, all files will be compiled again... This is exactly what the original question was about. -DNOCLEAN inhibits the Makefiles from running "make clean". I don't know if this is a sufficiently explanatory answer, but anyone curious enough can always look up the exact commands that the buildkernel make target runs at /usr/src/Makefile.inc1 :-) Giorgos. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message