Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 21 Sep 2009 03:46:13 +0200
From:      Mel Flynn <mel.flynn+fbsd.questions@mailing.thruhere.net>
To:        freebsd-questions@freebsd.org
Cc:        Giorgos Keramidas <keramida@ceid.upatras.gr>, Christer Solskogen <christer.solskogen@gmail.com>
Subject:   Re: Not able to compile GENERIC kernel
Message-ID:  <200909210346.13204.mel.flynn+fbsd.questions@mailing.thruhere.net>
In-Reply-To: <87bpl5fgt9.fsf@kobe.laptop>
References:  <200909201115.15669.mrkvrg@acm.org> <h95um8$7r2$1@ger.gmane.org> <87bpl5fgt9.fsf@kobe.laptop>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help
On Sunday 20 September 2009 23:26:58 Giorgos Keramidas wrote:
> On Sun, 20 Sep 2009 21:10:00 +0200, Christer Solskogen 
<christer.solskogen@gmail.com> wrote:
> > Giorgos Keramidas wrote:
> >>     # rm -fr /usr/obj/usr
> >>     # cd /usr/src
> >>     # make cleandir ; make cleandir
> >
> > I've seen serveral placeses that "make cleandir" should be run twice. I
> > dont understand why. Could somebody explain?
> 
> The first run cleans file sunder $(MAKEOBJDIRPREFIX), or under
> `/usr/obj' if MAKEOBJDIRPREFIX is unset.
> 
> The second run cleans files in the source tree itself.

Which you'll see if you don't use the designated build{world|kernel} targets, 
but cd into a directory and start typing make or....quite the pitfall, run 
make obj depend, rather then make obj && make depend. In the first case, the 
.depend file ends up in .CURDIR, not .OBJDIR.

Also, perhaps it's better to advise make cleanworld for the rm -rf, as this 
target accomplishes the same, deals better with chflags(2) and leaves 
/usr/obj/usr/ports in tact for those who have set WRKDIRPREFIX to /usr/obj for 
ports.
-- 
Mel



Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?200909210346.13204.mel.flynn+fbsd.questions>