From owner-freebsd-hackers Sat Mar 15 21:49:34 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id VAA09463 for hackers-outgoing; Sat, 15 Mar 1997 21:49:34 -0800 (PST) Received: from rover.village.org (rover.village.org [204.144.255.49]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id VAA09456 for ; Sat, 15 Mar 1997 21:49:28 -0800 (PST) Received: from rover.village.org (localhost [127.0.0.1]) by rover.village.org (8.8.5/8.6.6) with ESMTP id WAA12356; Sat, 15 Mar 1997 22:49:17 -0700 (MST) Message-Id: <199703160549.WAA12356@rover.village.org> To: Chuck Robey Subject: Re: Make question Cc: hackers@freebsd.org In-reply-to: Your message of "Sat, 15 Mar 1997 23:25:06 EST." References: Date: Sat, 15 Mar 1997 22:49:15 -0700 From: Warner Losh Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk In message Chuck Robey writes: : 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). Ummm, there *IS* one left over from my make world. If I cd to /usr/src/usr.bin and do a make, then it uses /usr/obj (specifically /usr/obj/jaz/FreeBSD/current/src/usr.bin/file). If I cd to /usr/src/usr.bin/file it builds in /usr/src/usr.bin/file rather than /usr/obj/jaz/FreeBSD/current/src/usr.bin/file.[*] : 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. Hmmm, that doesn't seem to work. I think the problem is that /usr/src is a symlink to /jaz/FreeBSD/current/src and when I recurse it uses the real path, while when I don't it uses $PWD. When I cd to /jaz/FreeBSD/current/src/usr.bin/file rather than /usr/src/usr.bin/file, then it picks up the right thing :-(. Sounds like a bug to me. Warner