diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2016-10-15 13:45:09 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2016-10-15 13:45:09 +0000 |
commit | 9e02ba4f8bb7e5a75f9b4d21173940a2dcb2c4ca (patch) | |
tree | c48db710b53a8781a66986da3357302e265550f5 /sys/arch/sparc64 | |
parent | 4e969093904145dc177cda98b0e3caa6ba1fb4c2 (diff) |
cleandir: target for kernel compile directories
ok natano
Diffstat (limited to 'sys/arch/sparc64')
-rw-r--r-- | sys/arch/sparc64/compile/Makefile | 7 | ||||
-rw-r--r-- | sys/arch/sparc64/compile/Makefile.inc | 2 | ||||
-rw-r--r-- | sys/arch/sparc64/conf/Makefile.sparc64 | 7 |
3 files changed, 9 insertions, 7 deletions
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 <bsd.subdir.mk> 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 \ |