Bug 22623

Summary: make clean doesn't remove core files
Product: Base System Reporter: Andrew Stevenson <andrew>
Component: binAssignee: freebsd-bugs (Nobody) <bugs>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: 4.1.1-STABLE   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
file.diff none

Description Andrew Stevenson 2000-11-05 15:10:01 UTC
/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
Comment 1 Bruce Evans 2000-11-05 16:46:17 UTC
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
Comment 2 bill fumerola freebsd_committer freebsd_triage 2000-11-05 18:35:31 UTC
State Changed
From-To: open->closed

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 ;->