From 9e02ba4f8bb7e5a75f9b4d21173940a2dcb2c4ca Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Sat, 15 Oct 2016 13:45:09 +0000 Subject: cleandir: target for kernel compile directories ok natano --- sys/arch/sparc64/compile/Makefile | 7 +++---- sys/arch/sparc64/compile/Makefile.inc | 2 +- sys/arch/sparc64/conf/Makefile.sparc64 | 7 +++++-- 3 files changed, 9 insertions(+), 7 deletions(-) (limited to 'sys/arch/sparc64') diff --git a/sys/arch/sparc64/compile/Makefile b/sys/arch/sparc64/compile/Makefile index 8a80b3aa5e3..5664244807a 100644 --- a/sys/arch/sparc64/compile/Makefile +++ b/sys/arch/sparc64/compile/Makefile @@ -1,8 +1,7 @@ -# $OpenBSD: Makefile,v 1.1 2016/10/14 18:43:01 deraadt Exp $ +# $OpenBSD: Makefile,v 1.2 2016/10/15 13:45:08 deraadt Exp $ -.if make(obj) || make(clean) -SUBDIR!=find . -type d -maxdepth 1 \! \( -name . -o -name CVS \) -#SUBDIR=GENERIC GENERIC.MP RAMDISK RAMDISKU1 RAMDISKU5 +.if make(obj) || make(clean) || make(cleandir) +SUBDIR!=find . -type d -maxdepth 1 \! \( -name . -o -name CVS \) | cut -b3- .endif .include diff --git a/sys/arch/sparc64/compile/Makefile.inc b/sys/arch/sparc64/compile/Makefile.inc index d79a8803ef2..1c3a21c7e8d 100644 --- a/sys/arch/sparc64/compile/Makefile.inc +++ b/sys/arch/sparc64/compile/Makefile.inc @@ -11,7 +11,7 @@ config: config: config -b ${.OBJDIR} -s ${SYSDIR} ${CONFDIR}/${.CURDIR:T} -clean: +cleandir clean: .endif diff --git a/sys/arch/sparc64/conf/Makefile.sparc64 b/sys/arch/sparc64/conf/Makefile.sparc64 index 48d801f52bd..b69c4338bd1 100644 --- a/sys/arch/sparc64/conf/Makefile.sparc64 +++ b/sys/arch/sparc64/conf/Makefile.sparc64 @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile.sparc64,v 1.75 2016/10/14 18:43:02 deraadt Exp $ +# $OpenBSD: Makefile.sparc64,v 1.76 2016/10/15 13:45:08 deraadt Exp $ # For instructions on building kernels consult the config(8) and options(4) # manual pages. @@ -119,7 +119,10 @@ vers.o: ${SYSTEM_DEP} ${SYSTEM_SWAP_DEP} clean:: rm -f eddep *bsd *bsd.gdb tags *.[dio] [a-z]*.s \ - [Ee]rrs linterrs assym.h ${DB_STRUCTINFO} + [Ee]rrs linterrs assym.* ${DB_STRUCTINFO} param.c + +cleandir: clean + rm -f Makefile *.h ioconf.c options machine ${_mach} vers.c version lint: @lint -hbxncez -Dvolatile= ${CPPFLAGS} -UKGDB \ -- cgit v1.2.3