Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 03 Jul 2004 06:31:01 -0500 (CDT)
From:      "Conrad J. Sabatier" <conrads@cox.net>
To:        Geert Hendrickx <geert.hendrickx@ua.ac.be>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: make buildworld: build changes only?
Message-ID:  <XFMail.20040703063101.conrads@cox.net>
In-Reply-To: <20040703091936.GA1871@lori.mine.nu>

next in thread | previous in thread | raw e-mail | index | archive | help

On 03-Jul-2004 Geert Hendrickx wrote:
>> make -DNOCLEAN buildworld
>> 
>> See /usr/src/Makefile.inc1 for all the various switches that are
>> available.  You may want to set some of them permanently in
>> /etc/make.conf.
>> 
>> Just do be aware that doing this can lead to trouble sometimes.
> 
> Ok, I think this is what I was looking for.  But what's the
> difference
> between these: ?  
> 
>#       -DNOCLEANDIR run ${MAKE} clean, instead of ${MAKE} cleandir
>#       -DNOCLEAN do not clean at all

Well, as the comment says, -DNOCLEAN does no cleaning at all before
starting the build.

The comments in /usr/share/mk/bsd.obj.mk (which is indirectly called
from Makefile.inc1):

#   clean:
#       remove ${CLEANFILES}; remove ${CLEANDIRS} and all contents.
#
#   cleandir:
#       remove the build directory (and all its contents) created by obj
#
#   obj:
#       create build directory.
#

So "make clean" first cleans any object files out of the object
directories and then removes them (why, I don't know).

"make cleandir" simply blasts away the entire object directory.

-- 
Conrad J. Sabatier <conrads@cox.net> -- "In Unix veritas"



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