summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorchristos <christos@NetBSD.org>1997-09-30 22:50:53 +0000
committerchristos <christos@NetBSD.org>1997-09-30 22:50:53 +0000
commit7f41ec03456d07ea3e3135ae53205833e28c2f18 (patch)
treeda390cedd19d3b83b0caec44e02742275c4fb516 /sys
parent3996b53189354f7c23b099d6d008d8f0b264238d (diff)
PR/4162: Chris Jones: make cleandir does not work properly; it does not
remove the object files and the .depend file in the kernel build directory.
Diffstat (limited to 'sys')
-rw-r--r--sys/arch/mac68k/conf/Makefile.mac68k14
-rw-r--r--sys/arch/mvme68k/conf/Makefile.mvme68k14
-rw-r--r--sys/arch/ofppc/conf/Makefile.ofppc15
-rw-r--r--sys/arch/pc532/conf/Makefile.pc53214
-rw-r--r--sys/arch/pica/conf/Makefile.pica14
-rw-r--r--sys/arch/pmax/conf/Makefile.pmax14
-rw-r--r--sys/arch/powerpc/conf/Makefile.powerpc15
-rw-r--r--sys/arch/sparc/conf/Makefile.sparc14
-rw-r--r--sys/arch/sun3/conf/Makefile.sun316
-rw-r--r--sys/arch/sun3x/conf/Makefile.sun3x16
-rw-r--r--sys/arch/vax/conf/Makefile.vax16
-rw-r--r--sys/arch/x68k/conf/Makefile.x68k14
12 files changed, 125 insertions, 51 deletions
diff --git a/sys/arch/mac68k/conf/Makefile.mac68k b/sys/arch/mac68k/conf/Makefile.mac68k
index e867c334dd9..e710d4f2213 100644
--- a/sys/arch/mac68k/conf/Makefile.mac68k
+++ b/sys/arch/mac68k/conf/Makefile.mac68k
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.mac68k,v 1.56 1997/09/12 07:55:17 mycroft Exp $
+# $NetBSD: Makefile.mac68k,v 1.57 1997/09/30 22:50:53 christos Exp $
# Makefile for NetBSD
#
@@ -119,12 +119,18 @@ newvers: ${SYSTEM_DEP} ${SYSTEM_SWAP_DEP}
sh $S/conf/newvers.sh
${CC} ${CFLAGS} ${CPPFLAGS} ${PROF} -c vers.c
-
-clean: cleankernel
-cleankernel:
+__CLEANKERNEL: .USE
+ @echo "${.TARGET}ing the kernel objects"
rm -f eddep *netbsd netbsd.gdb tags *.[io] [a-z]*.s \
[Ee]rrs linterrs makelinks assym.h.tmp assym.h
+__CLEANDEPEND: .USE
+ rm -f .depend
+
+clean: __CLEANKERNEL
+
+cleandir: __CLEANKERNEL __CLEANDEPEND
+
lint:
@lint -hbxncez -Dvolatile= ${CPPFLAGS} -UKGDB \
${CFILES} ioconf.c param.c | \
diff --git a/sys/arch/mvme68k/conf/Makefile.mvme68k b/sys/arch/mvme68k/conf/Makefile.mvme68k
index 1f82aa0f1f0..aff18511926 100644
--- a/sys/arch/mvme68k/conf/Makefile.mvme68k
+++ b/sys/arch/mvme68k/conf/Makefile.mvme68k
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.mvme68k,v 1.28 1997/09/12 09:29:13 mycroft Exp $
+# $NetBSD: Makefile.mvme68k,v 1.29 1997/09/30 22:52:37 christos Exp $
# Makefile for NetBSD
#
@@ -125,12 +125,18 @@ newvers: ${SYSTEM_DEP} ${SYSTEM_SWAP_DEP}
sh $S/conf/newvers.sh
${CC} ${CFLAGS} ${CPPFLAGS} ${PROF} -c vers.c
-
-clean: cleankernel
-cleankernel:
+__CLEANKERNEL: .USE
+ @echo "${.TARGET}ing the kernel objects"
rm -f eddep *netbsd netbsd.gdb tags *.[io] [a-z]*.s \
[Ee]rrs linterrs makelinks assym.h.tmp assym.h
+__CLEANDEPEND: .USE
+ rm -f .depend
+
+clean: __CLEANKERNEL
+
+cleandir: __CLEANKERNEL __CLEANDEPEND
+
lint:
@lint -hbxncez -Dvolatile= ${CPPFLAGS} -UKGDB \
${CFILES} ioconf.c param.c | \
diff --git a/sys/arch/ofppc/conf/Makefile.ofppc b/sys/arch/ofppc/conf/Makefile.ofppc
index 21323f47ff3..45dab2a132c 100644
--- a/sys/arch/ofppc/conf/Makefile.ofppc
+++ b/sys/arch/ofppc/conf/Makefile.ofppc
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.ofppc,v 1.8 1997/07/12 22:08:04 leo Exp $
+# $NetBSD: Makefile.ofppc,v 1.9 1997/09/30 22:56:18 christos Exp $
#
# Makefile for NetBSD
#
@@ -124,10 +124,17 @@ newvers: ${SYSTEM_DEP} ${SYSTEM_SWAP_DEP}
sh $S/conf/newvers.sh
${CC} ${CFLAGS} ${CPPFLAGS} ${PROF} -c vers.c
-clean: cleankernel
-cleankernel:
+__CLEANKERNEL: .USE
+ @echo "${.TARGET}ing the kernel objects"
rm -f eddep *netbsd netbsd.gdb tags *.[io] [a-z]*.s \
- [Ee]rrs linterrs makelinks assym.h
+ [Ee]rrs linterrs makelinks assym.h.tmp assym.h
+
+__CLEANDEPEND: .USE
+ rm -f .depend
+
+clean: __CLEANKERNEL
+
+cleandir: __CLEANKERNEL __CLEANDEPEND
lint:
@lint -hbxncez -Dvolatile= ${CPPFLAGS} -UKGDB \
diff --git a/sys/arch/pc532/conf/Makefile.pc532 b/sys/arch/pc532/conf/Makefile.pc532
index bd953169794..f58418a4f45 100644
--- a/sys/arch/pc532/conf/Makefile.pc532
+++ b/sys/arch/pc532/conf/Makefile.pc532
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.pc532,v 1.44 1997/07/12 22:08:01 leo Exp $
+# $NetBSD: Makefile.pc532,v 1.45 1997/09/30 22:53:31 christos Exp $
# Makefile for NetBSD
#
@@ -120,12 +120,18 @@ newvers: ${SYSTEM_DEP} ${SYSTEM_SWAP_DEP}
sh $S/conf/newvers.sh
${CC} ${CFLAGS} ${CPPFLAGS} ${PROF} -c vers.c
-
-clean: cleankernel
-cleankernel:
+__CLEANKERNEL: .USE
+ @echo "${.TARGET}ing the kernel objects"
rm -f eddep *netbsd netbsd.gdb tags *.[io] [a-z]*.s \
[Ee]rrs linterrs makelinks assym.h.tmp assym.h
+__CLEANDEPEND: .USE
+ rm -f .depend
+
+clean: __CLEANKERNEL
+
+cleandir: __CLEANKERNEL __CLEANDEPEND
+
lint:
@lint -hbxncez -Dvolatile= ${CPPFLAGS} -UKGDB \
${PC532}/pc532/Locore.c ${CFILES} \
diff --git a/sys/arch/pica/conf/Makefile.pica b/sys/arch/pica/conf/Makefile.pica
index 038883c6c3e..a8ae9779922 100644
--- a/sys/arch/pica/conf/Makefile.pica
+++ b/sys/arch/pica/conf/Makefile.pica
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.pica,v 1.15 1997/07/12 22:08:02 leo Exp $
+# $NetBSD: Makefile.pica,v 1.16 1997/09/30 22:54:24 christos Exp $
# Makefile for NetBSD
#
@@ -125,12 +125,18 @@ newvers: ${SYSTEM_DEP} ${SYSTEM_SWAP_DEP}
sh $S/conf/newvers.sh
${CC} ${CFLAGS} ${CPPFLAGS} ${PROF} -c vers.c
-
-clean: cleankernel
-cleankernel:
+__CLEANKERNEL: .USE
+ @echo "${.TARGET}ing the kernel objects"
rm -f eddep *netbsd netbsd.gdb tags *.[io] [a-z]*.s \
[Ee]rrs linterrs makelinks assym.h.tmp assym.h
+__CLEANDEPEND: .USE
+ rm -f .depend
+
+clean: __CLEANKERNEL
+
+cleandir: __CLEANKERNEL __CLEANDEPEND
+
lint:
@lint -hbxncez -Dvolatile= ${CPPFLAGS} -UKGDB \
${PICA}/pica/Locore.c ${CFILES} \
diff --git a/sys/arch/pmax/conf/Makefile.pmax b/sys/arch/pmax/conf/Makefile.pmax
index 10c9f859477..7d35f13f780 100644
--- a/sys/arch/pmax/conf/Makefile.pmax
+++ b/sys/arch/pmax/conf/Makefile.pmax
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.pmax,v 1.50 1997/07/12 22:08:03 leo Exp $
+# $NetBSD: Makefile.pmax,v 1.51 1997/09/30 22:55:38 christos Exp $
# Makefile for NetBSD
#
@@ -125,12 +125,18 @@ newvers: ${SYSTEM_DEP} ${SYSTEM_SWAP_DEP}
sh $S/conf/newvers.sh
${CC} ${CFLAGS} ${CPPFLAGS} ${PROF} -c vers.c
-
-clean: cleankernel
-cleankernel:
+__CLEANKERNEL: .USE
+ @echo "${.TARGET}ing the kernel objects"
rm -f eddep *netbsd netbsd.gdb tags *.[io] [a-z]*.s \
[Ee]rrs linterrs makelinks assym.h.tmp assym.h
+__CLEANDEPEND: .USE
+ rm -f .depend
+
+clean: __CLEANKERNEL
+
+cleandir: __CLEANKERNEL __CLEANDEPEND
+
lint:
@lint -hbxncez -Dvolatile= ${CPPFLAGS} -UKGDB \
${MIPS}/mips/Locore.c ${CFILES} \
diff --git a/sys/arch/powerpc/conf/Makefile.powerpc b/sys/arch/powerpc/conf/Makefile.powerpc
index b0613e00f61..6361a626a7b 100644
--- a/sys/arch/powerpc/conf/Makefile.powerpc
+++ b/sys/arch/powerpc/conf/Makefile.powerpc
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.powerpc,v 1.8 1997/07/12 22:08:04 leo Exp $
+# $NetBSD: Makefile.powerpc,v 1.9 1997/09/30 22:56:18 christos Exp $
#
# Makefile for NetBSD
#
@@ -124,10 +124,17 @@ newvers: ${SYSTEM_DEP} ${SYSTEM_SWAP_DEP}
sh $S/conf/newvers.sh
${CC} ${CFLAGS} ${CPPFLAGS} ${PROF} -c vers.c
-clean: cleankernel
-cleankernel:
+__CLEANKERNEL: .USE
+ @echo "${.TARGET}ing the kernel objects"
rm -f eddep *netbsd netbsd.gdb tags *.[io] [a-z]*.s \
- [Ee]rrs linterrs makelinks assym.h
+ [Ee]rrs linterrs makelinks assym.h.tmp assym.h
+
+__CLEANDEPEND: .USE
+ rm -f .depend
+
+clean: __CLEANKERNEL
+
+cleandir: __CLEANKERNEL __CLEANDEPEND
lint:
@lint -hbxncez -Dvolatile= ${CPPFLAGS} -UKGDB \
diff --git a/sys/arch/sparc/conf/Makefile.sparc b/sys/arch/sparc/conf/Makefile.sparc
index 1d8e3e8f02f..12d19659e98 100644
--- a/sys/arch/sparc/conf/Makefile.sparc
+++ b/sys/arch/sparc/conf/Makefile.sparc
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.sparc,v 1.46 1997/09/23 20:00:06 pk Exp $
+# $NetBSD: Makefile.sparc,v 1.47 1997/09/30 22:57:24 christos Exp $
# Makefile for NetBSD
#
@@ -115,12 +115,18 @@ newvers: ${SYSTEM_DEP} ${SYSTEM_SWAP_DEP}
sh $S/conf/newvers.sh
${CC} ${CFLAGS} ${CPPFLAGS} ${PROF} -c vers.c
-
-clean: cleankernel
-cleankernel:
+__CLEANKERNEL: .USE
+ @echo "${.TARGET}ing the kernel objects"
rm -f eddep *netbsd netbsd.gdb tags *.[io] [a-z]*.s \
[Ee]rrs linterrs makelinks assym.h.tmp assym.h
+__CLEANDEPEND: .USE
+ rm -f .depend
+
+clean: __CLEANKERNEL
+
+cleandir: __CLEANKERNEL __CLEANDEPEND
+
lint:
@lint -hbxncez -Dvolatile= ${CPPFLAGS} -UKGDB \
${SPARC}/sparc/Locore.c ${CFILES} \
diff --git a/sys/arch/sun3/conf/Makefile.sun3 b/sys/arch/sun3/conf/Makefile.sun3
index c42183f74e0..eaab580cf2a 100644
--- a/sys/arch/sun3/conf/Makefile.sun3
+++ b/sys/arch/sun3/conf/Makefile.sun3
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.sun3,v 1.60 1997/09/12 07:55:21 mycroft Exp $
+# $NetBSD: Makefile.sun3,v 1.61 1997/09/30 23:04:28 christos Exp $
# Makefile for NetBSD
#
@@ -146,11 +146,17 @@ newvers: ${SYSTEM_DEP} ${SYSTEM_SWAP_DEP}
sh $S/conf/newvers.sh
${CC} ${CFLAGS} ${CPPFLAGS} ${PROF} -c vers.c
-
-clean: cleankernel
-cleankernel:
+__CLEANKERNEL: .USE
+ @echo "${.TARGET}ing the kernel objects"
rm -f eddep *netbsd netbsd.gdb tags *.[io] [a-z]*.s \
- [Ee]rrs linterrs makelinks genassym genassym.o assym.h
+ [Ee]rrs linterrs makelinks assym.h.tmp assym.h
+
+__CLEANDEPEND: .USE
+ rm -f .depend
+
+clean: __CLEANKERNEL
+
+cleandir: __CLEANKERNEL __CLEANDEPEND
lint:
@lint -hbxncez -Dvolatile= ${CPPFLAGS} -UKGDB \
diff --git a/sys/arch/sun3x/conf/Makefile.sun3x b/sys/arch/sun3x/conf/Makefile.sun3x
index 4b9e2e5ab09..d6546249ceb 100644
--- a/sys/arch/sun3x/conf/Makefile.sun3x
+++ b/sys/arch/sun3x/conf/Makefile.sun3x
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.sun3x,v 1.11 1997/09/12 07:55:23 mycroft Exp $
+# $NetBSD: Makefile.sun3x,v 1.12 1997/09/30 23:05:08 christos Exp $
# Makefile for NetBSD
#
@@ -146,11 +146,17 @@ newvers: ${SYSTEM_DEP} ${SYSTEM_SWAP_DEP}
sh $S/conf/newvers.sh
${CC} ${CFLAGS} ${CPPFLAGS} ${PROF} -c vers.c
-
-clean: cleankernel
-cleankernel:
+__CLEANKERNEL: .USE
+ @echo "${.TARGET}ing the kernel objects"
rm -f eddep *netbsd netbsd.gdb tags *.[io] [a-z]*.s \
- [Ee]rrs linterrs makelinks genassym genassym.o assym.h
+ [Ee]rrs linterrs makelinks assym.h.tmp assym.h
+
+__CLEANDEPEND: .USE
+ rm -f .depend
+
+clean: __CLEANKERNEL
+
+cleandir: __CLEANKERNEL __CLEANDEPEND
lint:
@lint -hbxncez -Dvolatile= ${CPPFLAGS} -UKGDB \
diff --git a/sys/arch/vax/conf/Makefile.vax b/sys/arch/vax/conf/Makefile.vax
index 79bc7a4f166..425bbbfab1c 100644
--- a/sys/arch/vax/conf/Makefile.vax
+++ b/sys/arch/vax/conf/Makefile.vax
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.vax,v 1.32 1997/03/14 23:27:35 mycroft Exp $
+# $NetBSD: Makefile.vax,v 1.33 1997/09/30 23:07:45 christos Exp $
# Makefile for NetBSD
#
@@ -115,11 +115,17 @@ newvers: ${SYSTEM_DEP} ${SYSTEM_SWAP_DEP}
sh $S/conf/newvers.sh
${CC} ${CFLAGS} ${CPPFLAGS} ${PROF} -c vers.c
-
-clean: cleankernel
-cleankernel:
+__CLEANKERNEL: .USE
+ @echo "${.TARGET}ing the kernel objects"
rm -f eddep *netbsd netbsd.gdb tags *.[io] [a-z]*.s \
- [Ee]rrs linterrs makelinks
+ [Ee]rrs linterrs makelinks assym.h.tmp assym.h
+
+__CLEANDEPEND: .USE
+ rm -f .depend
+
+clean: __CLEANKERNEL
+
+cleandir: __CLEANKERNEL __CLEANDEPEND
lint:
@lint -hbxncez -Dvolatile= ${CPPFLAGS} -UKGDB \
diff --git a/sys/arch/x68k/conf/Makefile.x68k b/sys/arch/x68k/conf/Makefile.x68k
index 119f0322f89..8eda37e0a1b 100644
--- a/sys/arch/x68k/conf/Makefile.x68k
+++ b/sys/arch/x68k/conf/Makefile.x68k
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.x68k,v 1.17 1997/09/12 09:29:14 mycroft Exp $
+# $NetBSD: Makefile.x68k,v 1.18 1997/09/30 23:10:58 christos Exp $
# Makefile for NetBSD
#
@@ -131,12 +131,18 @@ newvers: ${SYSTEM_DEP} ${SYSTEM_SWAP_DEP}
sh $S/conf/newvers.sh
${CC} ${CFLAGS} ${CPPFLAGS} ${PROF} -c vers.c
-
-clean: cleankernel
-cleankernel:
+__CLEANKERNEL: .USE
+ @echo "${.TARGET}ing the kernel objects"
rm -f eddep *netbsd netbsd.gdb tags *.[io] [a-z]*.s \
[Ee]rrs linterrs makelinks assym.h.tmp assym.h
+__CLEANDEPEND: .USE
+ rm -f .depend
+
+clean: __CLEANKERNEL
+
+cleandir: __CLEANKERNEL __CLEANDEPEND
+
lint:
@lint -hbxncez -Dvolatile= ${CPPFLAGS} -UKGDB \
${CFILES} ioconf.c param.c | \