Makefile (223148) | Makefile (227769) |
---|---|
1# | 1# |
2# $FreeBSD: head/Makefile 223148 2011-06-16 12:28:37Z ru $ | 2# $FreeBSD: head/Makefile 227769 2011-11-20 19:05:32Z 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 --- 169 unchanged lines hidden (view full) --- 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 186# second time. There are situations where this target will be cleaning 187# some directories via more than one method, but that duplication is | 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 --- 169 unchanged lines hidden (view full) --- 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 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. | 188# needed to correctly handle all the possible situations. Removing all 189# files without the immutable flag set in the first 'rm' instance saves 190# time, because 'chflags' will need to operate on fewer files (with the 191# immutable flag set) afterwards. |
189# 190BW_CANONICALOBJDIR:=${MAKEOBJDIRPREFIX}${.CURDIR} 191cleanworld: 192.if ${.CURDIR} == ${.OBJDIR} || ${.CURDIR}/obj == ${.OBJDIR} 193.if exists(${BW_CANONICALOBJDIR}/) 194 -rm -rf ${BW_CANONICALOBJDIR}/* 195 -chflags -R 0 ${BW_CANONICALOBJDIR} 196 rm -rf ${BW_CANONICALOBJDIR}/* --- 242 unchanged lines hidden --- | 192# 193BW_CANONICALOBJDIR:=${MAKEOBJDIRPREFIX}${.CURDIR} 194cleanworld: 195.if ${.CURDIR} == ${.OBJDIR} || ${.CURDIR}/obj == ${.OBJDIR} 196.if exists(${BW_CANONICALOBJDIR}/) 197 -rm -rf ${BW_CANONICALOBJDIR}/* 198 -chflags -R 0 ${BW_CANONICALOBJDIR} 199 rm -rf ${BW_CANONICALOBJDIR}/* --- 242 unchanged lines hidden --- |