Subject: kern/1951: src/sys/lib/libkern/Makefile has broken clean target
To: None <gnats-bugs@gnats.netbsd.org>
From: Mike Long <mike.long@analog.com>
List: netbsd-bugs
Date: 01/16/1996 00:14:04
>Number: 1951
>Category: kern
>Synopsis: src/sys/lib/libkern/Makefile has broken clean target
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: kern-bug-people (Kernel Bug People)
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Tue Jan 16 00:20:03 1996
>Last-Modified:
>Originator: Mike Long <mike.long@analog.com>
>Organization:
Snow-haters Anonymous
>Release: 960113
>Environment:
System: NetBSD azathoth 1.1A NetBSD 1.1A (AZATHOTH) #6: Thu Jan 11 22:47:14 EST 1996 root@azathoth:/usr/src/sys/arch/i386/compile/AZATHOTH i386
>Description:
The libkern Makefile doesn't clean up after itself properly.
It needs to remove libkern.o and/or libkern.po.
>How-To-Repeat:
cd /sys/arch/$MACHINE/conf
config GENERIC
cd ../compile/GENERIC
make depend && make # creates lib/kern/libkern.o
make clean
ls lib/kern # dir is not empty
>Fix:
Apply this diff:
*** /sys/lib/libkern/Makefile~ Mon Dec 11 15:40:20 1995
--- /sys/lib/libkern/Makefile Sat Jan 13 21:38:10 1996
***************
*** 27,30 ****
--- 27,32 ----
SRCS+=
+ CLEANFILES+= lib${LIB}.o lib${LIB}.po
+
# mcount cannot be compiled with profiling
mcount.po: mcount.o
>Audit-Trail:
>Unformatted: