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

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help
On Mon, 21 Sep 2009 03:46:13 +0200, Mel Flynn <mel.flynn+fbsd.questions@mailing.thruhere.net> wrote:
> 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.

That's a good point.  Thanks.  I'll remember it the next time I suggest
that someone wipes their entire `/usr/obj' tree :)




Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?874oqxqcn9.fsf>