Roland Mainz writes:
> Bill Sommerfeld wrote:
> > On Tue, 2009-02-03 at 16:32 -0800, Mike Kupfer wrote:
> > > Rainer suggested that it would be good for "make clobber" to get the
> > > tree as close to a pristine condition as possible, which argues for
> > > deleting directories.  So, for example, his patch introduces a
> > > CLOBBERDIRS variable to go along with CLOBBERFILES.
> > 
> > Does this proposed change use rmdir or rm -rf to delete elements of
> > CLOBBERDIRS?
> 
> AFAIK it would be nice to get both CLOBBERDIRS which runs after
> CLOBBERFILES and a CLEANDIRS variable which runs after CLEANFILES, both
> implemented via @rmdir $(xxxDIRS) to get warnings when non-empty
> directories remain.

I agree.  I think it'd be a little strange to need rm -rf.  I would
think that you have ".make.state" floobydust only in directories that
actually contain Makefiles, and those aren't ones you should be trying
to clobber.  (At least in the normal ON build process, where Makefiles
are always versioned and not generated.)

-- 
James Carlson, Solaris Networking              <james.d.carlson at sun.com>
Sun Microsystems / 35 Network Drive        71.232W   Vox +1 781 442 2084
MS UBUR02-212 / Burlington MA 01803-2757   42.496N   Fax +1 781 442 1677

Reply via email to