Makefile (218524) | Makefile (219137) |
---|---|
1# | 1# |
2# $FreeBSD: head/Makefile 218524 2011-02-10 18:54:52Z jhb $ | 2# $FreeBSD: head/Makefile 219137 2011-03-01 14:54:14Z jhb $ |
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 --- 320 unchanged lines hidden (view full) --- 331TARGET_ARCHES_${target}?= ${target} 332.endfor 333 334.if defined(UNIVERSE_TARGET) 335MAKE_JUST_WORLDS= YES 336.else 337UNIVERSE_TARGET?= buildworld 338.endif | 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 --- 320 unchanged lines hidden (view full) --- 331TARGET_ARCHES_${target}?= ${target} 332.endfor 333 334.if defined(UNIVERSE_TARGET) 335MAKE_JUST_WORLDS= YES 336.else 337UNIVERSE_TARGET?= buildworld 338.endif |
339KERNSRCDIR?= ${.CURDIR}/sys |
|
339 340targets: 341 @echo "Supported TARGET/TARGET_ARCH pairs for world and kernel targets" 342.for target in ${TARGETS} 343.for target_arch in ${TARGET_ARCHES_${target}} 344 @echo " ${target}/${target_arch}" 345.endfor 346.endfor --- 31 unchanged lines hidden (view full) --- 378 > _.${target}.${target_arch}.${UNIVERSE_TARGET} 2>&1 || \ 379 (echo "${target}.${target_arch} ${UNIVERSE_TARGET} failed," \ 380 "check _.${target}.${target_arch}.${UNIVERSE_TARGET} for details" | \ 381 ${MAKEFAIL})) 382 @echo ">> ${target}.${target_arch} ${UNIVERSE_TARGET} completed on `LC_ALL=C date`" 383.endfor 384.endif 385.if !defined(MAKE_JUST_WORLDS) | 340 341targets: 342 @echo "Supported TARGET/TARGET_ARCH pairs for world and kernel targets" 343.for target in ${TARGETS} 344.for target_arch in ${TARGET_ARCHES_${target}} 345 @echo " ${target}/${target_arch}" 346.endfor 347.endfor --- 31 unchanged lines hidden (view full) --- 379 > _.${target}.${target_arch}.${UNIVERSE_TARGET} 2>&1 || \ 380 (echo "${target}.${target_arch} ${UNIVERSE_TARGET} failed," \ 381 "check _.${target}.${target_arch}.${UNIVERSE_TARGET} for details" | \ 382 ${MAKEFAIL})) 383 @echo ">> ${target}.${target_arch} ${UNIVERSE_TARGET} completed on `LC_ALL=C date`" 384.endfor 385.endif 386.if !defined(MAKE_JUST_WORLDS) |
386.if exists(${.CURDIR}/sys/${target}/conf/NOTES) 387 @(cd ${.CURDIR}/sys/${target}/conf && env __MAKE_CONF=/dev/null \ | 387.if exists(${KERNSRCDIR}/${target}/conf/NOTES) 388 @(cd ${KERNSRCDIR}/${target}/conf && env __MAKE_CONF=/dev/null \ |
388 ${MAKE} LINT > ${.CURDIR}/_.${target}.makeLINT 2>&1 || \ 389 (echo "${target} 'make LINT' failed," \ 390 "check _.${target}.makeLINT for details"| ${MAKEFAIL})) 391.endif 392 @cd ${.CURDIR} && ${MAKE} ${.MAKEFLAGS} TARGET=${target} \ 393 universe_kernels 394.endif 395 @echo ">> ${target} completed on `LC_ALL=C date`" 396.endfor 397universe_kernels: universe_kernconfs 398.if !defined(TARGET) 399TARGET!= uname -m 400.endif | 389 ${MAKE} LINT > ${.CURDIR}/_.${target}.makeLINT 2>&1 || \ 390 (echo "${target} 'make LINT' failed," \ 391 "check _.${target}.makeLINT for details"| ${MAKEFAIL})) 392.endif 393 @cd ${.CURDIR} && ${MAKE} ${.MAKEFLAGS} TARGET=${target} \ 394 universe_kernels 395.endif 396 @echo ">> ${target} completed on `LC_ALL=C date`" 397.endfor 398universe_kernels: universe_kernconfs 399.if !defined(TARGET) 400TARGET!= uname -m 401.endif |
401KERNCONFS!= cd ${.CURDIR}/sys/${TARGET}/conf && \ | 402KERNCONFS!= cd ${KERNSRCDIR}/${TARGET}/conf && \ |
402 find [A-Z0-9]*[A-Z0-9] -type f -maxdepth 0 \ 403 ! -name DEFAULTS ! -name NOTES 404universe_kernconfs: 405.for kernel in ${KERNCONFS} | 403 find [A-Z0-9]*[A-Z0-9] -type f -maxdepth 0 \ 404 ! -name DEFAULTS ! -name NOTES 405universe_kernconfs: 406.for kernel in ${KERNCONFS} |
406TARGET_ARCH_${kernel}!= cd ${.CURDIR}/sys/${TARGET}/conf && \ 407 config -m ${.CURDIR}/sys/${TARGET}/conf/${kernel} 2> /dev/null | \ | 407TARGET_ARCH_${kernel}!= cd ${KERNSRCDIR}/${TARGET}/conf && \ 408 config -m ${KERNSRCDIR}/${TARGET}/conf/${kernel} 2> /dev/null | \ |
408 grep -v WARNING: | cut -f 2 409.if empty(TARGET_ARCH_${kernel}) 410.error "Target architecture for ${TARGET}/conf/${kernel} unknown. config(8) likely too old." 411.endif 412universe_kernconfs: universe_kernconf_${TARGET}_${kernel} 413universe_kernconf_${TARGET}_${kernel}: 414 @(cd ${.CURDIR} && env __MAKE_CONF=/dev/null \ 415 ${MAKE} ${JFLAG} buildkernel \ --- 21 unchanged lines hidden --- | 409 grep -v WARNING: | cut -f 2 410.if empty(TARGET_ARCH_${kernel}) 411.error "Target architecture for ${TARGET}/conf/${kernel} unknown. config(8) likely too old." 412.endif 413universe_kernconfs: universe_kernconf_${TARGET}_${kernel} 414universe_kernconf_${TARGET}_${kernel}: 415 @(cd ${.CURDIR} && env __MAKE_CONF=/dev/null \ 416 ${MAKE} ${JFLAG} buildkernel \ --- 21 unchanged lines hidden --- |