Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 15 Mar 1997 23:25:06 -0500 (EST)
From:      Chuck Robey <chuckr@glue.umd.edu>
To:        Warner Losh <imp@village.org>
Cc:        hackers@FreeBSD.ORG
Subject:   Re: Make question
Message-ID:  <Pine.OSF.3.95q.970315232211.16495A-100000@modem.eng.umd.edu>
In-Reply-To: <199703160259.TAA05600@rover.village.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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!
----------------------------+-----------------------------------------------




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.OSF.3.95q.970315232211.16495A-100000>