From owner-freebsd-hackers@FreeBSD.ORG Sun Feb 15 10:54:07 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8D5CB16A4CE for ; Sun, 15 Feb 2004 10:54:07 -0800 (PST) Received: from ns1.xcllnt.net (209-128-86-226.BAYAREA.NET [209.128.86.226]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6AFFB43D1D for ; Sun, 15 Feb 2004 10:54:07 -0800 (PST) (envelope-from marcel@xcllnt.net) Received: from dhcp01.pn.xcllnt.net (dhcp01.pn.xcllnt.net [192.168.4.201]) by ns1.xcllnt.net (8.12.10/8.12.10) with ESMTP id i1FIrtOE050522; Sun, 15 Feb 2004 10:53:55 -0800 (PST) (envelope-from marcel@piii.pn.xcllnt.net) Received: from dhcp01.pn.xcllnt.net (localhost [127.0.0.1]) i1FIrtcM066848; Sun, 15 Feb 2004 10:53:55 -0800 (PST) (envelope-from marcel@dhcp01.pn.xcllnt.net) Received: (from marcel@localhost) by dhcp01.pn.xcllnt.net (8.12.10/8.12.10/Submit) id i1FIrpoE066847; Sun, 15 Feb 2004 10:53:51 -0800 (PST) (envelope-from marcel) Date: Sun, 15 Feb 2004 10:53:51 -0800 From: Marcel Moolenaar To: "M. Warner Losh" Message-ID: <20040215185351.GB65052@dhcp01.pn.xcllnt.net> References: <20040215.101900.20429400.imp@bsdimp.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040215.101900.20429400.imp@bsdimp.com> User-Agent: Mutt/1.4.1i cc: hackers@freebsd.org cc: drosih@rpi.edu Subject: Re: Adding 'realclean' target to /usr/src/Makefile X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 15 Feb 2004 18:54:07 -0000 On Sun, Feb 15, 2004 at 10:19:00AM -0700, M. Warner Losh wrote: > In message: > Garance A Drosihn writes: > : realclean : > : rm -Rf ${.OBJDIR}/* > > I'd make that be more like: > > realclean : > @chflags -R 0 ${.OBJDIR}/* > @rm -Rf ${.OBJDIR}/* > > since sometimes you wind up files that have flags set on them. Sounds like a bug to me. Do you have examples? > If you can tolerate errors in the output, the following is faster > because the chflags has lots less work to do: > > realclean : > @rm -Rf ${.OBJDIR}/* > @chflags -R 0 ${.OBJDIR}/* > @rm -Rf ${.OBJDIR}/* Since there should be no flags on files in the object directory in principle, the errors are probably useful to track down where these get set. In any case: I think a realclean target based on a recursive rm is generally useful. Adding a chflags in there makes it more foolproof and thus ideal for UPDATING and other user oriented documentation. -- Marcel Moolenaar USPA: A-39004 marcel@xcllnt.net