Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 21 Sep 2009 03:46:13 +0200
From:      Mel Flynn <>
Cc:        Giorgos Keramidas <>, Christer Solskogen <>
Subject:   Re: Not able to compile GENERIC kernel
Message-ID:  <>
In-Reply-To: <87bpl5fgt9.fsf@kobe.laptop>
References:  <> <h95um8$7r2$> <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 
<> 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 

Want to link to this message? Use this URL: <>