From andrew@ugh.net.au  Sun Nov  5 07:08:19 2000
Return-Path: <andrew@ugh.net.au>
Received: from starbug.ugh.net.au (starbug.ugh.net.au [203.31.238.37])
	by hub.freebsd.org (Postfix) with ESMTP id 5860137B4C5
	for <FreeBSD-gnats-submit@freebsd.org>; Sun,  5 Nov 2000 07:08:18 -0800 (PST)
Received: by starbug.ugh.net.au (Postfix, from userid 1000)
	id E38CAA82B; Mon,  6 Nov 2000 02:08:10 +1100 (EST)
Message-Id: <20001105150810.E38CAA82B@starbug.ugh.net.au>
Date: Mon,  6 Nov 2000 02:08:10 +1100 (EST)
From: andrew@ugh.net.au
Reply-To: andrew@ugh.net.au
To: FreeBSD-gnats-submit@freebsd.org
Subject: make clean doesn't remove core files
X-Send-Pr-Version: 3.2

>Number:         22623
>Category:       bin
>Synopsis:       make clean doesn't remove core files
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Nov 05 07:10:01 PST 2000
>Closed-Date:    Sun Nov 5 10:35:31 PST 2000
>Last-Modified:  Sun Nov 05 10:36:14 PST 2000
>Originator:     Andrew
>Release:        FreeBSD 4.1.1-STABLE i386
>Organization:
UgH!
>Environment:

	

>Description:

/usr/share/mk/bsd.README, when refering to bsd.prog.mk, states:

clean:
                remove the program, any object files and the files a.out,
				Errs, errs, mklog, and ${PROG}.core.

however it only seem to do ${PROG} and the object files.

>How-To-Repeat:

Go to a directory containing a Makefile that .includes bsd.prog.mk
touch a.out ${PROG}.core etc
make clean

>Fix:


--- bsd.prog.mk.orig	Mon Nov  6 01:04:33 2000
+++ bsd.prog.mk	Mon Nov  6 01:05:34 2000
@@ -67,7 +67,7 @@
 .MAIN: all
 all: objwarn ${PROG} all-man _SUBDIR
 
-CLEANFILES+= ${PROG} ${OBJS}
+CLEANFILES+= ${PROG} ${OBJS} ${PROG}.core a.out Errs errs mklog
 
 .if defined(PROG)
 _EXTRADEPEND:

>Release-Note:
>Audit-Trail:

From: Bruce Evans <bde@zeta.org.au>
To: andrew@ugh.net.au
Cc: FreeBSD-gnats-submit@FreeBSD.ORG
Subject: Re: bin/22623: make clean doesn't remove core files
Date: Mon, 6 Nov 2000 03:46:17 +1100 (EST)

 On Mon, 6 Nov 2000 andrew@ugh.net.au wrote:
 
 > >Synopsis:       make clean doesn't remove core files
 
 This is intentional.  `make clean' only removes files that are created
 as a normal part of the build process.  See the log for bsd.obj.mk.
 
 > >Description:
 > 
 > /usr/share/mk/bsd.README, when refering to bsd.prog.mk, states:
 > 
 > clean:
 >                 remove the program, any object files and the files a.out,
 > 				Errs, errs, mklog, and ${PROG}.core.
 
 This is one of many anachronisms in bsd.README.
 
 Bruce
 
 
State-Changed-From-To: open->closed 
State-Changed-By: billf 
State-Changed-When: Sun Nov 5 10:35:31 PST 2000 
State-Changed-Why:  
bde explained the cause for the reported problem and I concur. 

bde explained this to me a few months ago too, so don't feel bad ;-> 

http://www.freebsd.org/cgi/query-pr.cgi?pr=22623 
>Unformatted:
