From owner-freebsd-current Thu Sep 17 04:03:29 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id EAA17550 for freebsd-current-outgoing; Thu, 17 Sep 1998 04:03:29 -0700 (PDT) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from ocean.campus.luth.se (ocean.campus.luth.se [130.240.194.116]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id EAA17538 for ; Thu, 17 Sep 1998 04:03:24 -0700 (PDT) (envelope-from karpen@ocean.campus.luth.se) Received: (from karpen@localhost) by ocean.campus.luth.se (8.9.1/8.9.1) id MAA06336; Thu, 17 Sep 1998 12:57:08 +0200 (CEST) (envelope-from karpen) From: Mikael Karpberg Message-Id: <199809171057.MAA06336@ocean.campus.luth.se> Subject: Re: 'make world' dying in sbin/atm/atm In-Reply-To: <199809162206.IAA06055@cimlogic.com.au> from John Birrell at "Sep 17, 98 08:06:40 am" To: jb@cimlogic.com.au (John Birrell) Date: Thu, 17 Sep 1998 12:57:08 +0200 (CEST) Cc: current@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL32 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG According to John Birrell: > Poul-Henning Kamp wrote: > > >My world build (make -DNOAOUT -DNOCLEAN world, /usr/obj clean, fairly > ^ > | > The problem here is -----------------+ > > People mistakenly believe that they can use -DNOCLEAN if /usr/obj is > clean. That is not so. The build behaves differently. I would prefer > the build to test if the objdir is clean and not do the recursive > clean. Definitely! I mean, why on earth is the make world doing a recursive clean of an empty directory? That always comfused me. At every directory that will be cleaned, the make should check if the directory is empty, and if it is, stop the recursion down that path. So if /usr/obj is empty it would do nothing. Would anyone care to fix that or should I look into it? Is there a problem with fixing it? How do you detect if the directory is empty in a nice way? What is the question to 42? etc... /Mikael To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message