From owner-freebsd-hackers Mon Feb 2 10:10:26 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id KAA03303 for hackers-outgoing; Mon, 2 Feb 1998 10:10:26 -0800 (PST) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from ns.mt.sri.com (sri-gw.MT.net [206.127.105.141]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id KAA03180 for ; Mon, 2 Feb 1998 10:10:10 -0800 (PST) (envelope-from nate@mt.sri.com) Received: from mt.sri.com (rocky.mt.sri.com [206.127.76.100]) by ns.mt.sri.com (8.8.8/8.8.8) with SMTP id LAA16366; Mon, 2 Feb 1998 11:10:00 -0700 (MST) (envelope-from nate@rocky.mt.sri.com) Received: by mt.sri.com (SMI-8.6/SMI-SVR4) id LAA28241; Mon, 2 Feb 1998 11:09:58 -0700 Date: Mon, 2 Feb 1998 11:09:58 -0700 Message-Id: <199802021809.LAA28241@mt.sri.com> From: Nate Williams MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: dag-erli@ifi.uio.no (Dag-Erling Coidan Smørgrav) Cc: Nate Williams , Warner Losh , hackers@FreeBSD.ORG Subject: Re: Recompiling just kmem programs? In-Reply-To: References: <199801301658.JAA26173@harmony.village.org> <199801301957.MAA17366@mt.sri.com> <199802021747.KAA27920@mt.sri.com> X-Mailer: VM 6.29 under 19.15 XEmacs Lucid Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG X-To-Unsubscribe: mail to majordomo@FreeBSD.org "unsubscribe hackers" > > > > # make obj && make depend && make && make install > > > 'make obj depend all install' oughta be enough for anyone. > > Actually, no. > > Would you care to elaborate? :) > > The general idea is that you want to make each of these targets, in > order, and stop everything if one of them fails. Doesn't 'make obj > depend all install' do just that? Yep, but if you do a 'make obj depend', the .depend file won't end up in the obj directory, simple because make doesn't 'reset' it's build environment to take advantage of the obj directory. In the same manner, if you do a 'make depend all', then make won't re-read the dependency files before making 'all' to determine if a file is out-of-date with respect to it's dependencies. This is just a generic problem with all Unix makes, and nothing new to BSD-Make. Normally it works fine since most targets don't depend on the ouytput of the previous target, but if they do there is a chance of not getting the correct results. > I usually (and successfully) do 'make depend all install' to rebuild > my kernel... This works after a new 'config' run since everything needs to be re-built, so you end up building a .depend file for the next build (though if you're blowing everything away everytime the depend step is un-necessary). Nate