Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 3 Nov 2001 00:39:58 +0000
From:      "Walter C. Pelissero" <walter@pelissero.org>
To:        ports@FreeBSD.ORG
Subject:   Re: make clean
Message-ID:  <15331.15582.353206.198267@hyde.lpds.sublink.org>
In-Reply-To: <3BE2E9FE.F791695C@DougBarton.net>
References:  <200110291311.f9TDBA033787@pelissero.org> <20011030093535.E592@jonc.itouch> <15325.64572.190371.554449@hyde.lpds.sublink.org> <3BE2E9FE.F791695C@DougBarton.net>

next in thread | previous in thread | raw e-mail | index | archive | help
Doug Barton writes:
 > >  > On Mon, Oct 29, 2001 at 01:11:10PM +0000, Walter C. Pelissero wrote:
 > >  > > Wouldn't make sense if Makefile in /usr/ports directory had
 > >  > > NOCLEANDEPENDS=yes set by default?
 > 
 > We just covered this a couple weeks ago. The fastest way to clean your
 > ports directory is:
 > 
 > find /usr/ports -type d -name work | xargs rm -r 
 > 
 > There is no point in "optimizing" make clean in /usr/ports because no
 > matter how much more efficient you make it, you still have to deal with
 > a lot of make overhead that can be avoided using the above method.

All right!  Then as far as I can understand the "clean" target just
happens to be there because it accidentally appears in an included
module.  So, basically, you are suggesting, it shouldn't be used.
[ Because in its implementation it's just doing a lot of redundant work
  that takes for ever. ]

Maybe it's worth mentioning in the documentation (handbook/faq),
because, as far as I could remember the suggested way is "make clean";
or maybe it's worth to put the correct "clean" target (the find
statement) in that Makefile, or just the simple variable assignement I
suggested.

I don't see the point in leaving an unuseful/unusable/deprecated
target that is recommended in the handbook.

Sorry if this happens to be an old issue.
Might be old, but still not addressed.

Just out of curiosity.  Has anybody checked the time it takes for
"make clean" in the ports root directory?  On my poor Pentium 500MHz
one night is not enough, while, if you set NOCLEANDEPENDS, in around
one hour it's done.

Do you have a better solution with your find?  Fine!  Then write it in
the Makefile or change the handbook.  The reader of the handbook is
not supposed to know that what is written in there is not actually the
right way to do things.  The reader is not even supposed to know that
what a "make clean" on the ports root directory is basically a very
expensive way of doing what could be done with a simple find.  (Well,
it could be easily figured out after a few tries, but that's not the
point.)

Otherwise be prepared to see this issue being rised again and again.

-- 
walter pelissero
http://www.pelissero.org

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




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