Not able to compile GENERIC kernel
Mel Flynn
mel.flynn+fbsd.questions at mailing.thruhere.net
Mon Sep 21 01:46:16 UTC 2009
On Sunday 20 September 2009 23:26:58 Giorgos Keramidas wrote:
> On Sun, 20 Sep 2009 21:10:00 +0200, Christer Solskogen
<christer.solskogen at 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
More information about the freebsd-questions
mailing list