From owner-freebsd-ports Fri Aug 11 9:23:34 2000 Delivered-To: freebsd-ports@freebsd.org Received: from nbf-27.umd.edu (nbf-27.umd.edu [128.8.38.27]) by hub.freebsd.org (Postfix) with ESMTP id EBB0A37B7B5 for ; Fri, 11 Aug 2000 09:23:19 -0700 (PDT) (envelope-from bfoz@glue.umd.edu) Received: from glue.umd.edu (localhost [127.0.0.1]) by nbf-27.umd.edu (8.9.3/8.9.3) with ESMTP id MAA20501; Fri, 11 Aug 2000 12:22:31 -0400 (EDT) (envelope-from bfoz@glue.umd.edu) Message-ID: <39942846.59268DA3@glue.umd.edu> Date: Fri, 11 Aug 2000 12:22:30 -0400 From: Brandon Fosdick X-Mailer: Mozilla 4.73 [en] (X11; I; Linux 2.2.12 i386) X-Accept-Language: en MIME-Version: 1.0 To: "Chris D. Faulhaber" Cc: ports@freebsd.org Subject: Re: make clean in /usr/ports References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org "Chris D. Faulhaber" wrote: > > On Tue, 8 Aug 2000, Brandon Fosdick wrote: > > > Why do I have to specify -DNOCLEANDEPENDS when doing a 'make clean' in > > /usr/ports? Why would anyone want to clean dependencies when cleaning the entire > > ports tree? Isn't that kinda redundant? > > Why would anyone 'make clean' in /usr/ports in the first > place? Dependencies are cleaned automatically so that when a port is > installed, everything that may have been built is cleaned. I've never seen this behavior, and I just checked it with a fresh ports tree. > > I can already hear the response..."Send a patch...". Have you actually looked at > > the makefiles? I have a better chance of decphering the Iliad written in > > cuneiform. > > > > Hmmm, if you *need* to 'make clean' in /usr/ports, how about just adding > "NOCLEANDEPENDS=yes" to /usr/ports/Makefile ? I hadn't thought of that. However, it seems to me that I shouldn't have had too. Whether you need to clean the entire ports tree or not, its dumb to have the system automatically assume that you want to clean dependecies for the whole tree. Granted, the current system is workable and specifying NOCLEANDEPENDS isn't difficult, but the engineer in me thinks that it could, and should, be better. Is there some way to have /usr/ports/Makefile automatically define NOCLEANDEPENDS iff the current directory is /usr/ports? -Brandon To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message