Subject: Re: pkg/14684: make clean in pkgsrc is waaay too slow
To: John Franklin <>
From: Greg A. Woods <>
List: tech-pkg
Date: 11/23/2001 15:04:32
[ On Friday, November 23, 2001 at 06:04:35 (+0100), Hubert Feyrer wrote: ]
> Subject: Re: pkg/14684: make clean in pkgsrc is waaay too slow
> On Thu, 22 Nov 2001, John Franklin wrote:
> > 
> > I've seen it remove the package I'm building, but not the dependent
> > packages.  Building something like Galeon on a virgin system can leave
> > quite a bit.
> > 
> > I just tried it with tk and it didn't clean either tk or tcl.  This is with
> > a current pkgsrc and the November 11 snapshot installed.  Could be I've got
> > something set wrong on my system.  <shrug>
> That's intentionally. You can clean all depends with
> 	make clean CLEANDEPENDS=yes


"make clean" simply calls "make clean-depends" before it does the local
cleanup if (CLEANDEPENDS != "NO") and if either BUILD_DEPENDS or DEPENDS
are defined.

"make clean-depends" always does the same thing (i.e. to do a "make
clean" in all the dependencies for the package where it's run),
regardless of how CLEANDEPENDS is set, though of course if forces it to
be "NO" as it does the recursive calls to "make clean" so as to avoid a

I.e. I think it's best to recommend people use "make clean-depends
clean" (which I think is easier to type too, being that it has two fewer
characters and no upper-case characters) and to generally ignore
CLEANDEPENDS unless one knows what one is doing.  :-)

(I personally wouldn't mind having a "make clobber" or something similar
which would be even easier to remember and to type -- or maybe
clean-depends should also clean the local package too?)

Unfortunately neither the clean-depends target nor the CLEANDEPENDS
macro/flag are documented in Packages.txt.

							Greg A. Woods

+1 416 218-0098      VE3TCP      <>     <>
Planix, Inc. <>;   Secrets of the Weird <>