`make cleanworld` and /usr/obj/lib32/usr/src

Alexander Best alexbestms at wwu.de
Sat Feb 27 13:50:07 UTC 2010


how about something like this?

alex

Gary Jennejohn schrieb am 2010-02-22:
> On Mon, 22 Feb 2010 00:20:14 +0100 (CET)
> Alexander Best <alexbestms at wwu.de> wrote:

> > hi there,

> > anybody fancy the idea of including /usr/obj/lib32/usr/src in the
> > cleanworld
> > target on amd64?


> Seems like a reasonable thing to do.

> ---
> Gary Jennejohn
-------------- next part --------------
Index: Makefile
===================================================================
--- Makefile	(revision 204383)
+++ Makefile	(working copy)
@@ -158,7 +158,12 @@
 	-rm -rf ${.OBJDIR}/*
 	-chflags -R 0 ${.OBJDIR}
 	rm -rf ${.OBJDIR}/*
+.if exists (${MAKEOBJDIRPREFIX}/lib32${.CURDIR}/)
+	-rm -rf ${MAKEOBJDIRPREFIX}/lib32${.CURDIR}/*
+	-chflags -R 0 ${MAKEOBJDIRPREFIX}/lib32${.CURDIR}
+	-rm -rf ${MAKEOBJDIRPREFIX}/lib32${.CURDIR}/*
 .endif
+.endif
 
 #
 # Handle the user-driven targets, using the source relative mk files.


More information about the freebsd-hackers mailing list