I'm sponsoring Rainer Orth's fix for

    6414855 make clobber doesn't

and one of the issues that came up with what "make clean" and "make
clobber" should do with directories that contain only build products or
intermediate files.  

I thought that our clean and clobber rules only deleted files, but
Rainer pointed out that in some cases directories are deleted.  For
example, $SRC/cmd/dc/Makefile removes the $(XD) subdirectory as part of
"make clean".

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.

I just want to have a consistent concept about what "make clean" and
"make clobber" do.

Does anyone know of arguments to support either the "files only"
approach or the "delete directories" approach?

thanks,
mike

Reply via email to