cvs commit: src Makefile

John Baldwin jhb at FreeBSD.org
Thu Feb 19 10:50:58 PST 2004


On Thursday 19 February 2004 09:18 am, 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.

If /usr/obj is a symlink it should stay that way so that a user doesn't have 
to relink it every time.  Using /* is probably the best approach.

-- 
John Baldwin <jhb at FreeBSD.org>  <><  http://www.FreeBSD.org/~jhb/
"Power Users Use the Power to Serve"  =  http://www.FreeBSD.org


More information about the cvs-src mailing list