Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 11 Aug 2004 13:52:01 +0200 (CEST)
From:      Barry Bouwsma <freebsd-misuser@remove-NOSPAM-to-reply.NOSPAM.dyndns.dk>
To:        Ruslan Ermilov <ru@freebsd.org>
Cc:        current@freebsd.org
Subject:   Re: DISTDIR
Message-ID:  <200408111152.i7BBq0l44279@Mail.NOSPAM.DynDNS.dK>
References:  <20040810231044.GA70020@xor.obsecurity.org> <20040811061202.GA80234@ip.net.ua> <20040811065912.GA95263@xor.obsecurity.org> <20040811080350.GK80234@ip.net.ua> <200408110916.i7B9GTj43770@Mail.NOSPAM.DynDNS.dK> <20040811101100.GB84908@ip.net.ua><20040811111803.GJ84908@ip.net.ua>

next in thread | previous in thread | raw e-mail | index | archive | help
>   OTOH, if you want some knob for
> /etc/make.conf to control what MAKEOBJDIRPREFIX will be set
> to during buildworld and related targets, this should be
> possible easily, though I personally don't see much point
> in yet another variable.

I believe this would make you (or whoever comes up with it)
immensely popular, judging from the responses over the past
hours.

The advantage is that things would still ``work'' if one
were to forget the commandline -- `make buildworld' would
just do what the user wants.  Like if I mis-type `make
-DNOKERNEL_CLEAN buildkernel' on a slow machine.  And then
pull my hair when it takes hours to get to the point where
I was.  How many times have I typed `env MAKROBJDIRPREFIX=foo'
in the dark and cursed myself when I realized what's wrong.


> > > DISTDIR is only used by "make distribute", and the latter

> > Ah, that I had been using `make distribute' or similar in
> > order to populate DESTDIR/etc after a `make installworld',
> > which is probably not what I should have been doing.  (After

> The correct spelling would be "make distrib-dirs && make
> distribution" while in /usr/src/etc, but it does not use
> DISTDIR either.  "make distibute" while in /usr/src/etc
> uses DISTDIR, but it should not be called by the end user,

This is what I noticed, not knowing which was right, when I
was testing to see what worked.  Anyway, then I did the
`make distribution' with success -- I believe the `distrib-dirs'
step was part of the `installworld'.  If not, I'll be doing it
all again next buildworld, just for practice...

First I tried the `SUBDIR_OVERRIDE' or whatever you mentioned
earlier as part of `build everything' for a failed build in
the top-level src directory.  Like I say, I didn't know what
to do so I was trying out different things in hope of getting
something right, particularly as not everything works in the
subdirectories as in the top-level directory.

Thanks for the clarification, and straightening everything up.


barry bouwsma



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200408111152.i7BBq0l44279>