Makefile (190628) | Makefile (201815) |
---|---|
1# | 1# |
2# $FreeBSD: head/Makefile 190628 2009-04-01 17:11:50Z bz $ | 2# $FreeBSD: head/Makefile 201815 2010-01-08 19:01:50Z bz $ |
3# 4# The user-driven targets are: 5# 6# universe - *Really* build *everything* (buildworld and 7# all kernels on all architectures). 8# buildworld - Rebuild *everything*, including glue to help do 9# upgrades. 10# installworld - Install everything built by "buildworld". --- 262 unchanged lines hidden (view full) --- 273 274# 275# universe 276# 277# Attempt to rebuild *everything* for all supported architectures, 278# with a reasonable chance of success, regardless of how old your 279# existing system is. 280# | 3# 4# The user-driven targets are: 5# 6# universe - *Really* build *everything* (buildworld and 7# all kernels on all architectures). 8# buildworld - Rebuild *everything*, including glue to help do 9# upgrades. 10# installworld - Install everything built by "buildworld". --- 262 unchanged lines hidden (view full) --- 273 274# 275# universe 276# 277# Attempt to rebuild *everything* for all supported architectures, 278# with a reasonable chance of success, regardless of how old your 279# existing system is. 280# |
281.if make(universe) || make(tinderbox) | 281.if make(universe) || make(universe_kernels) || make(tinderbox) |
282TARGETS?=amd64 arm i386 ia64 mips pc98 powerpc sparc64 sun4v 283 284.if defined(DOING_TINDERBOX) 285FAILFILE=tinderbox.failed 286MAKEFAIL=tee -a ${FAILFILE} 287.else 288MAKEFAIL=cat 289.endif 290 291universe: universe_prologue 292universe_prologue: 293 @echo "--------------------------------------------------------------" 294 @echo ">>> make universe started on ${STARTTIME}" 295 @echo "--------------------------------------------------------------" 296.if defined(DOING_TINDERBOX) 297 rm -f ${FAILFILE} 298.endif 299.for target in ${TARGETS} | 282TARGETS?=amd64 arm i386 ia64 mips pc98 powerpc sparc64 sun4v 283 284.if defined(DOING_TINDERBOX) 285FAILFILE=tinderbox.failed 286MAKEFAIL=tee -a ${FAILFILE} 287.else 288MAKEFAIL=cat 289.endif 290 291universe: universe_prologue 292universe_prologue: 293 @echo "--------------------------------------------------------------" 294 @echo ">>> make universe started on ${STARTTIME}" 295 @echo "--------------------------------------------------------------" 296.if defined(DOING_TINDERBOX) 297 rm -f ${FAILFILE} 298.endif 299.for target in ${TARGETS} |
300KERNCONFS!= cd ${.CURDIR}/sys/${target}/conf && \ 301 find [A-Z0-9]*[A-Z0-9] -type f -maxdepth 0 \ 302 ! -name DEFAULTS ! -name LINT 303KERNCONFS:= ${KERNCONFS:S/^NOTES$/LINT/} | |
304universe: universe_${target} 305.ORDER: universe_prologue universe_${target} universe_epilogue 306universe_${target}: 307.if !defined(MAKE_JUST_KERNELS) 308 @echo ">> ${target} started on `LC_ALL=C date`" 309 @(cd ${.CURDIR} && env __MAKE_CONF=/dev/null \ 310 ${MAKE} ${JFLAG} buildworld \ 311 TARGET=${target} \ 312 > _.${target}.buildworld 2>&1 || \ 313 (echo "${target} world failed," \ 314 "check _.${target}.buildworld for details" | ${MAKEFAIL})) 315 @echo ">> ${target} buildworld completed on `LC_ALL=C date`" 316.endif 317.if exists(${.CURDIR}/sys/${target}/conf/NOTES) 318 @(cd ${.CURDIR}/sys/${target}/conf && env __MAKE_CONF=/dev/null \ 319 ${MAKE} LINT > ${.CURDIR}/_.${target}.makeLINT 2>&1 || \ 320 (echo "${target} 'make LINT' failed," \ 321 "check _.${target}.makeLINT for details"| ${MAKEFAIL})) 322.endif | 300universe: universe_${target} 301.ORDER: universe_prologue universe_${target} universe_epilogue 302universe_${target}: 303.if !defined(MAKE_JUST_KERNELS) 304 @echo ">> ${target} started on `LC_ALL=C date`" 305 @(cd ${.CURDIR} && env __MAKE_CONF=/dev/null \ 306 ${MAKE} ${JFLAG} buildworld \ 307 TARGET=${target} \ 308 > _.${target}.buildworld 2>&1 || \ 309 (echo "${target} world failed," \ 310 "check _.${target}.buildworld for details" | ${MAKEFAIL})) 311 @echo ">> ${target} buildworld completed on `LC_ALL=C date`" 312.endif 313.if exists(${.CURDIR}/sys/${target}/conf/NOTES) 314 @(cd ${.CURDIR}/sys/${target}/conf && env __MAKE_CONF=/dev/null \ 315 ${MAKE} LINT > ${.CURDIR}/_.${target}.makeLINT 2>&1 || \ 316 (echo "${target} 'make LINT' failed," \ 317 "check _.${target}.makeLINT for details"| ${MAKEFAIL})) 318.endif |
319 @cd ${.CURDIR} && ${MAKE} ${.MAKEFLAGS} TARGET=${target} \ 320 universe_kernels 321 @echo ">> ${target} completed on `LC_ALL=C date`" 322.endfor 323universe_kernels: universe_kernconfs 324BUILD_ARCH!= uname -p 325TARGET?= ${BUILD_ARCH} 326KERNCONFS!= cd ${.CURDIR}/sys/${TARGET}/conf && \ 327 find [A-Z0-9]*[A-Z0-9] -type f -maxdepth 0 \ 328 ! -name DEFAULTS ! -name NOTES 329universe_kernconfs: |
|
323.for kernel in ${KERNCONFS} 324 @(cd ${.CURDIR} && env __MAKE_CONF=/dev/null \ 325 ${MAKE} ${JFLAG} buildkernel \ | 330.for kernel in ${KERNCONFS} 331 @(cd ${.CURDIR} && env __MAKE_CONF=/dev/null \ 332 ${MAKE} ${JFLAG} buildkernel \ |
326 TARGET=${target} \ | 333 TARGET=${TARGET} \ |
327 KERNCONF=${kernel} \ | 334 KERNCONF=${kernel} \ |
328 > _.${target}.${kernel} 2>&1 || \ 329 (echo "${target} ${kernel} kernel failed," \ 330 "check _.${target}.${kernel} for details"| ${MAKEFAIL})) | 335 > _.${TARGET}.${kernel} 2>&1 || \ 336 (echo "${TARGET} ${kernel} kernel failed," \ 337 "check _.${TARGET}.${kernel} for details"| ${MAKEFAIL})) |
331.endfor | 338.endfor |
332 @echo ">> ${target} completed on `LC_ALL=C date`" 333.endfor | |
334universe: universe_epilogue 335universe_epilogue: 336 @echo "--------------------------------------------------------------" 337 @echo ">>> make universe completed on `LC_ALL=C date`" 338 @echo " (started ${STARTTIME})" 339 @echo "--------------------------------------------------------------" 340.if defined(DOING_TINDERBOX) 341 @if [ -e ${FAILFILE} ] ; then \ 342 echo "Tinderbox failed:" ;\ 343 cat ${FAILFILE} ;\ 344 exit 1 ;\ 345 fi 346.endif 347.endif | 339universe: universe_epilogue 340universe_epilogue: 341 @echo "--------------------------------------------------------------" 342 @echo ">>> make universe completed on `LC_ALL=C date`" 343 @echo " (started ${STARTTIME})" 344 @echo "--------------------------------------------------------------" 345.if defined(DOING_TINDERBOX) 346 @if [ -e ${FAILFILE} ] ; then \ 347 echo "Tinderbox failed:" ;\ 348 cat ${FAILFILE} ;\ 349 exit 1 ;\ 350 fi 351.endif 352.endif |