cvs commit: src Makefile

David O'Brien obrien at FreeBSD.org
Thu Feb 19 12:35:58 PST 2004


On Thu, Feb 19, 2004 at 03:18:53PM +0100, Dag-Erling Sm?rgrav wrote:
> Ruslan Ermilov <ru at FreeBSD.org> writes:
> > Also, why "rm -rf ${.OBJDIR}/*" instead of "rm -rf ${.OBJDIR}"?
> > Is it to preserve a possibly symlinked /usr/obj?
> 
> Probably because if ${.OBJDIR} is a symlink, 'rm -rf ${.OBJDIR}' will
> just remove the symlink and not the actual files.  A better way to
> address this is with 'rm -rf ${.OBJDIR}/', which will remove the
> contents of the directory the symlink points to before removing the
> symlink.

The original is better -- it can be used as a lay-person.
Several of my obj directories are owned by non-root, and using
${.OBJDIR}/* DTRT.


More information about the cvs-src mailing list