Deleted Added
full compact
Makefile (227770) Makefile (227771)
1#
1#
2# $FreeBSD: head/Makefile 227770 2011-11-20 19:27:52Z gjb $
2# $FreeBSD: head/Makefile 227771 2011-11-20 20:05:47Z gjb $
3#
4# The user-driven targets are:
5#
6# universe - *Really* build *everything* (buildworld and
7# all kernels on all architectures).
8# tinderbox - Same as universe, but presents a list of failed build
9# targets and exits with an error if there were any.
10# buildworld - Rebuild *everything*, including glue to help do

--- 166 unchanged lines hidden (view full) ---

177# This 'cleanworld' target is not included in TGTS, because it is not a
178# recursive target. All of the work for it is done right here. It is
179# expected that BW_CANONICALOBJDIR == the CANONICALOBJDIR as would be
180# created by bsd.obj.mk, except that we don't want to .include that file
181# in this makefile.
182#
183# In the following, the first 'rm' in a series will usually remove all
184# files and directories. If it does not, then there are probably some
3#
4# The user-driven targets are:
5#
6# universe - *Really* build *everything* (buildworld and
7# all kernels on all architectures).
8# tinderbox - Same as universe, but presents a list of failed build
9# targets and exits with an error if there were any.
10# buildworld - Rebuild *everything*, including glue to help do

--- 166 unchanged lines hidden (view full) ---

177# This 'cleanworld' target is not included in TGTS, because it is not a
178# recursive target. All of the work for it is done right here. It is
179# expected that BW_CANONICALOBJDIR == the CANONICALOBJDIR as would be
180# created by bsd.obj.mk, except that we don't want to .include that file
181# in this makefile.
182#
183# In the following, the first 'rm' in a series will usually remove all
184# files and directories. If it does not, then there are probably some
185# files with chflags set, so this unsets them and tries the 'rm' a
185# files with file flags set, so this unsets them and tries the 'rm' a
186# second time. There are situations where this target will be cleaning
187# some directories via more than one method, but that duplication is
188# needed to correctly handle all the possible situations. Removing all
186# second time. There are situations where this target will be cleaning
187# some directories via more than one method, but that duplication is
188# needed to correctly handle all the possible situations. Removing all
189# files without file flags set in the first 'rm' instance saves
190# time, because 'chflags' will need to operate on fewer files afterwards.
189# files without file flags set in the first 'rm' instance saves time,
190# because 'chflags' will need to operate on fewer files afterwards.
191#
192BW_CANONICALOBJDIR:=${MAKEOBJDIRPREFIX}${.CURDIR}
193cleanworld:
194.if ${.CURDIR} == ${.OBJDIR} || ${.CURDIR}/obj == ${.OBJDIR}
195.if exists(${BW_CANONICALOBJDIR}/)
196 -rm -rf ${BW_CANONICALOBJDIR}/*
197 -chflags -R 0 ${BW_CANONICALOBJDIR}
198 rm -rf ${BW_CANONICALOBJDIR}/*

--- 242 unchanged lines hidden ---
191#
192BW_CANONICALOBJDIR:=${MAKEOBJDIRPREFIX}${.CURDIR}
193cleanworld:
194.if ${.CURDIR} == ${.OBJDIR} || ${.CURDIR}/obj == ${.OBJDIR}
195.if exists(${BW_CANONICALOBJDIR}/)
196 -rm -rf ${BW_CANONICALOBJDIR}/*
197 -chflags -R 0 ${BW_CANONICALOBJDIR}
198 rm -rf ${BW_CANONICALOBJDIR}/*

--- 242 unchanged lines hidden ---