Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 20 Jul 2000 00:09:15 +0100
From:      Mark Ovens <mark@ukug.uk.freebsd.org>
To:        stable@freebsd.org
Subject:   Question about -DNOCLEAN when building the world
Message-ID:  <20000720000915.B239@parish>

next in thread | raw e-mail | index | archive | help
What exactly is -DNOCLEAN supposed to do when building the world? I
always make clean in /usr/src and completely remove /usr/obj after
making the world (disk space) so there's nothing to clean but I still
see lots of ``rm -rf'' scrolling by even when using -DNOCLEAN.

Looking in /usr/src/Makefile.inc1 I find:

.if !defined(NOCLEAN)
        rm -rf ${WORLDTMP}
.else
        for dir in bin games include lib sbin; do \
                rm -rf ${WORLDTMP}/usr/$$dir; \
        done
        rm -f ${WORLDTMP}/sys
        # XXX - Work-around for broken cc/cc_tools/Makefile.
        # This is beyond dirty...
        rm -f ${OBJTREE}${.CURDIR}/gnu/usr.bin/cc/cc_tools/.depend
.endif

so it appears t still be doing a selective clean (on either
non-existent dirs or ones that have been newly created).

What is the reason for this? Is it just a "belt and braces" action?

-- 
  If I buy a copy of WinDelete, and it doesn't delete Windows,
  am I entitled to my money back?
________________________________________________________________
      FreeBSD - The Power To Serve http://www.freebsd.org
      My Webpage http://ukug.uk.freebsd.org/~mark/
mailto:marko@freebsd.org             http://www.radan.com



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-stable" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000720000915.B239>