From owner-freebsd-questions@FreeBSD.ORG Mon Apr 26 11:14:21 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6738F16A4CE for ; Mon, 26 Apr 2004 11:14:21 -0700 (PDT) Received: from pd2mo1so.prod.shaw.ca (shawidc-mo1.cg.shawcable.net [24.71.223.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3C83E43D46 for ; Mon, 26 Apr 2004 11:14:21 -0700 (PDT) (envelope-from flowers@users.sourceforge.net) Received: from pd3mr7so.prod.shaw.ca (pd3mr7so-qfe3.prod.shaw.ca [10.0.141.23])2003))freebsd-questions@freebsd.org; Mon, 26 Apr 2004 12:09:18 -0600 (MDT) Received: from pn2ml3so.prod.shaw.ca ([10.0.121.147]) by pd3mr7so.prod.shaw.ca (Sun ONE Messaging Server 6.0 HotFix 1.01 (built Mar 15 2004)) with ESMTP id <0HWS00876IH08QE0@pd3mr7so.prod.shaw.ca> for freebsd-questions@freebsd.org; Mon, 26 Apr 2004 12:10:12 -0600 (MDT) Received: from sirius (S0106004001438e5b.cg.shawcable.net [68.144.47.89]) by l-daemon (iPlanet Messaging Server 5.2 HotFix 1.18 (built Jul 28 2003)) with ESMTP id <0HWS00F2XIFH2B@l-daemon> for freebsd-questions@freebsd.org; Mon, 26 Apr 2004 12:09:18 -0600 (MDT) Date: Mon, 26 Apr 2004 12:09:12 -0600 From: Danny MacMillan In-reply-to: <20040426124957.76359.qmail@web40303.mail.yahoo.com> To: Stephen Liu , Matthew Seaman Message-id: MIME-version: 1.0 Content-type: text/plain; charset=iso-8859-15; format=flowed Content-transfer-encoding: 7BIT User-Agent: Opera7.23/Win32 M2 build 3227 References: <20040426124957.76359.qmail@web40303.mail.yahoo.com> cc: freebsd-questions@freebsd.org Subject: Re: Open Office - installation problem X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 Apr 2004 18:14:21 -0000 On Mon, 26 Apr 2004 20:49:57 +0800 (CST), Stephen Liu wrote: >> You should be able to stop the 'make clean' with no >> ill effects. If you =really= want to clean your >> whole ports tree, run: >> >> make -DNOCLEANDEPENDS clean >> >> in the /usr/ports directory. It should go about a >> thousand times faster. > > Hi Danny, > > > > What is the tag/syntax '-DNOCLEANDEPENDS' > representing? Well, -D as an argument to make(1) means "define this symbol". So it's defining a symbol named NOCLEANDEPENDS. Why would you want to do this? Because then the clean target will traverse each port in the tree and clean each of them without cleaning dependent ports, too. Since you're running it in /usr/ports, you know every port will be cleaned anyway. I'm sorry if this doesn't make too much sense. The ports(7) man page will give you a good overview of the ports system and is where I looked to find the above information. It helps if you know a little bit about make(1). > To run: > # cd /usr/ports > # portsclean -CDD I don't know; I didn't know portsclean existed. My guess is that portsclean would probably be much faster since its targetted to a specific task and doesn't need to use the general-purpose ports make system. In fact I just ran a little test to prove it. portsclean -C is about a thousand times (number not scientific) faster than make -DNOCLEANDEPENDS clean. -- Danny