From owner-freebsd-hackers Sat Mar 15 20:25:14 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id UAA07163 for hackers-outgoing; Sat, 15 Mar 1997 20:25:14 -0800 (PST) Received: from po2.glue.umd.edu (root@po2.glue.umd.edu [129.2.128.45]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id UAA07158 for ; Sat, 15 Mar 1997 20:25:10 -0800 (PST) Received: from modem.eng.umd.edu (modem.eng.umd.edu [129.2.98.187]) by po2.glue.umd.edu (8.8.5/8.8.5) with ESMTP id XAA04272; Sat, 15 Mar 1997 23:25:07 -0500 (EST) Received: from localhost (chuckr@localhost) by modem.eng.umd.edu (8.8.5/8.6.4) with SMTP id XAA16586; Sat, 15 Mar 1997 23:25:06 -0500 (EST) X-Authentication-Warning: modem.eng.umd.edu: chuckr owned process doing -bs Date: Sat, 15 Mar 1997 23:25:06 -0500 (EST) From: Chuck Robey X-Sender: chuckr@modem.eng.umd.edu To: Warner Losh cc: hackers@FreeBSD.ORG Subject: Re: Make question In-Reply-To: <199703160259.TAA05600@rover.village.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk On Sat, 15 Mar 1997, Warner Losh wrote: > > I needed to remake file tonight from the build I had laying around in > /usr/obj. The /usr/obj is freshly make world'd > > So I thought I could just cd to /usr/src/usr.bin/file and type make. > Well, that doesn't update the /usr/obj copy. It just builds in > /usr/src. So I cd .. and then make SUBDIRS=file. This seemed to > work, but tried to do file/file after it got done. > > What's the preferred way to force the build to write to /usr/obj? It does this if there isn't a corresponding obj dir left over from your last make world. I usually, when messing around in single dirs, do a 'make obj' just to be sure that there's a corresponding obj dir there (and I don't mess up my source dirs, which I like to keep clean). I think all you have to do is a make obj, then make real sure you go out of your way to kill the invisible .depend file in your sources, when you're deleting all the wayward obj files. ----------------------------+----------------------------------------------- Chuck Robey | Interests include any kind of voice or data chuckr@eng.umd.edu | communications topic, C programming, and Unix. 9120 Edmonston Ct #302 | Greenbelt, MD 20770 | I run Journey2 and picnic, both FreeBSD (301) 220-2114 | version 3.0 current -- and great FUN! ----------------------------+-----------------------------------------------