From owner-freebsd-current Thu Sep 17 14:50:58 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id OAA14848 for freebsd-current-outgoing; Thu, 17 Sep 1998 14:50:58 -0700 (PDT) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from cimlogic.com.au (cimlog.lnk.telstra.net [139.130.51.31]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id OAA14675 for ; Thu, 17 Sep 1998 14:50:15 -0700 (PDT) (envelope-from jb@cimlogic.com.au) Received: (from jb@localhost) by cimlogic.com.au (8.9.1/8.9.1) id HAA10538; Fri, 18 Sep 1998 07:54:17 +1000 (EST) (envelope-from jb) From: John Birrell Message-Id: <199809172154.HAA10538@cimlogic.com.au> Subject: Re: 'make world' dying in sbin/atm/atm In-Reply-To: <199809171057.MAA06336@ocean.campus.luth.se> from Mikael Karpberg at "Sep 17, 98 12:57:08 pm" To: karpen@ocean.campus.luth.se (Mikael Karpberg) Date: Fri, 18 Sep 1998 07:54:17 +1000 (EST) Cc: jb@cimlogic.com.au, current@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL40 (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 Mikael Karpberg wrote: > 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... The "simple" answer is to check if the ${MAKEOBJDIRPREFIX}/${OBJFORMAT} directory exists before the `mkdir -p' step that creates it. If it doesn't exist, don't do the recursive clean. This is only now possible because the top-level makefile sets MAKEOBJDIRPREFIX=${MAKEOBJDIRPREFIX}/${OBJFORMAT} and the NOOBJ option has been removed (probably against the wishes of some). -- John Birrell - jb@cimlogic.com.au; jb@freebsd.org http://www.cimlogic.com.au/ CIMlogic Pty Ltd, GPO Box 117A, Melbourne Vic 3001, Australia +61 418 353 137 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message