Makefile (253616) | Makefile (254417) |
---|---|
1# | 1# |
2# $FreeBSD: head/Makefile 253616 2013-07-24 17:55:08Z sjg $ | 2# $FreeBSD: head/Makefile 254417 2013-08-16 16:26:23Z sjg $ |
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 --- 226 unchanged lines hidden (view full) --- 237# 238# Handle the user-driven targets, using the source relative mk files. 239# 240 241.if empty(.MAKEFLAGS:M-n) 242# skip this for -n to avoid changing previous behavior of 243# 'make -n buildworld' etc. 244${TGTS}: .MAKE | 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 --- 226 unchanged lines hidden (view full) --- 237# 238# Handle the user-driven targets, using the source relative mk files. 239# 240 241.if empty(.MAKEFLAGS:M-n) 242# skip this for -n to avoid changing previous behavior of 243# 'make -n buildworld' etc. 244${TGTS}: .MAKE |
245tinderbox toolchains kernel-toolchains: .MAKE |
|
245.endif 246 247${TGTS}: 248 ${_+_}@cd ${.CURDIR}; ${_MAKE} ${.TARGET} 249 250# Set a reasonable default 251.MAIN: all 252 --- 95 unchanged lines hidden (view full) --- 348 @echo ">>> Building an up-to-date make(1)" 349 @echo "--------------------------------------------------------------" 350 ${_+_}@cd ${.CURDIR}/usr.bin/${.TARGET}; \ 351 ${MMAKE} obj && \ 352 ${MMAKE} depend && \ 353 ${MMAKE} all && \ 354 ${MMAKE} install DESTDIR=${MYMAKE:H} BINDIR= PROGNAME=${MYMAKE:T} 355 | 246.endif 247 248${TGTS}: 249 ${_+_}@cd ${.CURDIR}; ${_MAKE} ${.TARGET} 250 251# Set a reasonable default 252.MAIN: all 253 --- 95 unchanged lines hidden (view full) --- 349 @echo ">>> Building an up-to-date make(1)" 350 @echo "--------------------------------------------------------------" 351 ${_+_}@cd ${.CURDIR}/usr.bin/${.TARGET}; \ 352 ${MMAKE} obj && \ 353 ${MMAKE} depend && \ 354 ${MMAKE} all && \ 355 ${MMAKE} install DESTDIR=${MYMAKE:H} BINDIR= PROGNAME=${MYMAKE:T} 356 |
357tinderbox toolchains kernel-toolchains: upgrade_checks 358 |
|
356tinderbox: | 359tinderbox: |
357 @cd ${.CURDIR} && ${MAKE} DOING_TINDERBOX=YES universe | 360 @cd ${.CURDIR} && ${SUB_MAKE} DOING_TINDERBOX=YES universe |
358 359toolchains: | 361 362toolchains: |
360 @cd ${.CURDIR} && ${MAKE} UNIVERSE_TARGET=toolchain universe | 363 @cd ${.CURDIR} && ${SUB_MAKE} UNIVERSE_TARGET=toolchain universe |
361 362kernel-toolchains: | 364 365kernel-toolchains: |
363 @cd ${.CURDIR} && ${MAKE} UNIVERSE_TARGET=kernel-toolchain universe | 366 @cd ${.CURDIR} && ${SUB_MAKE} UNIVERSE_TARGET=kernel-toolchain universe |
364 365# 366# universe 367# 368# Attempt to rebuild *everything* for all supported architectures, 369# with a reasonable chance of success, regardless of how old your 370# existing system is. 371# --- 42 unchanged lines hidden (view full) --- 414universe: universe_${target} 415universe_epilogue: universe_${target} 416universe_${target}: universe_${target}_prologue 417universe_${target}_prologue: universe_prologue 418 @echo ">> ${target} started on `LC_ALL=C date`" 419.if !defined(MAKE_JUST_KERNELS) 420.for target_arch in ${TARGET_ARCHES_${target}} 421universe_${target}: universe_${target}_${target_arch} | 367 368# 369# universe 370# 371# Attempt to rebuild *everything* for all supported architectures, 372# with a reasonable chance of success, regardless of how old your 373# existing system is. 374# --- 42 unchanged lines hidden (view full) --- 417universe: universe_${target} 418universe_epilogue: universe_${target} 419universe_${target}: universe_${target}_prologue 420universe_${target}_prologue: universe_prologue 421 @echo ">> ${target} started on `LC_ALL=C date`" 422.if !defined(MAKE_JUST_KERNELS) 423.for target_arch in ${TARGET_ARCHES_${target}} 424universe_${target}: universe_${target}_${target_arch} |
422universe_${target}_${target_arch}: universe_${target}_prologue | 425universe_${target}_${target_arch}: universe_${target}_prologue .MAKE |
423 @echo ">> ${target}.${target_arch} ${UNIVERSE_TARGET} started on `LC_ALL=C date`" 424 @(cd ${.CURDIR} && env __MAKE_CONF=/dev/null \ 425 ${SUB_MAKE} ${JFLAG} ${UNIVERSE_TARGET} \ 426 TARGET=${target} \ 427 TARGET_ARCH=${target_arch} \ 428 > _.${target}.${target_arch}.${UNIVERSE_TARGET} 2>&1 || \ 429 (echo "${target}.${target_arch} ${UNIVERSE_TARGET} failed," \ 430 "check _.${target}.${target_arch}.${UNIVERSE_TARGET} for details" | \ --- 4 unchanged lines hidden (view full) --- 435.if !defined(MAKE_JUST_WORLDS) 436# If we are building world and kernels wait for the required worlds to finish 437.if !defined(MAKE_JUST_KERNELS) 438.for target_arch in ${TARGET_ARCHES_${target}} 439universe_${target}_kernels: universe_${target}_${target_arch} 440.endfor 441.endif 442universe_${target}: universe_${target}_kernels | 426 @echo ">> ${target}.${target_arch} ${UNIVERSE_TARGET} started on `LC_ALL=C date`" 427 @(cd ${.CURDIR} && env __MAKE_CONF=/dev/null \ 428 ${SUB_MAKE} ${JFLAG} ${UNIVERSE_TARGET} \ 429 TARGET=${target} \ 430 TARGET_ARCH=${target_arch} \ 431 > _.${target}.${target_arch}.${UNIVERSE_TARGET} 2>&1 || \ 432 (echo "${target}.${target_arch} ${UNIVERSE_TARGET} failed," \ 433 "check _.${target}.${target_arch}.${UNIVERSE_TARGET} for details" | \ --- 4 unchanged lines hidden (view full) --- 438.if !defined(MAKE_JUST_WORLDS) 439# If we are building world and kernels wait for the required worlds to finish 440.if !defined(MAKE_JUST_KERNELS) 441.for target_arch in ${TARGET_ARCHES_${target}} 442universe_${target}_kernels: universe_${target}_${target_arch} 443.endfor 444.endif 445universe_${target}: universe_${target}_kernels |
443universe_${target}_kernels: universe_${target}_prologue | 446universe_${target}_kernels: universe_${target}_prologue .MAKE |
444.if exists(${KERNSRCDIR}/${target}/conf/NOTES) 445 @(cd ${KERNSRCDIR}/${target}/conf && env __MAKE_CONF=/dev/null \ 446 ${SUB_MAKE} LINT > ${.CURDIR}/_.${target}.makeLINT 2>&1 || \ 447 (echo "${target} 'make LINT' failed," \ 448 "check _.${target}.makeLINT for details"| ${MAKEFAIL})) 449.endif 450 @cd ${.CURDIR} && ${SUB_MAKE} ${.MAKEFLAGS} TARGET=${target} \ 451 universe_kernels --- 11 unchanged lines hidden (view full) --- 463.for kernel in ${KERNCONFS} 464TARGET_ARCH_${kernel}!= cd ${KERNSRCDIR}/${TARGET}/conf && \ 465 config -m ${KERNSRCDIR}/${TARGET}/conf/${kernel} 2> /dev/null | \ 466 grep -v WARNING: | cut -f 2 467.if empty(TARGET_ARCH_${kernel}) 468.error "Target architecture for ${TARGET}/conf/${kernel} unknown. config(8) likely too old." 469.endif 470universe_kernconfs: universe_kernconf_${TARGET}_${kernel} | 447.if exists(${KERNSRCDIR}/${target}/conf/NOTES) 448 @(cd ${KERNSRCDIR}/${target}/conf && env __MAKE_CONF=/dev/null \ 449 ${SUB_MAKE} LINT > ${.CURDIR}/_.${target}.makeLINT 2>&1 || \ 450 (echo "${target} 'make LINT' failed," \ 451 "check _.${target}.makeLINT for details"| ${MAKEFAIL})) 452.endif 453 @cd ${.CURDIR} && ${SUB_MAKE} ${.MAKEFLAGS} TARGET=${target} \ 454 universe_kernels --- 11 unchanged lines hidden (view full) --- 466.for kernel in ${KERNCONFS} 467TARGET_ARCH_${kernel}!= cd ${KERNSRCDIR}/${TARGET}/conf && \ 468 config -m ${KERNSRCDIR}/${TARGET}/conf/${kernel} 2> /dev/null | \ 469 grep -v WARNING: | cut -f 2 470.if empty(TARGET_ARCH_${kernel}) 471.error "Target architecture for ${TARGET}/conf/${kernel} unknown. config(8) likely too old." 472.endif 473universe_kernconfs: universe_kernconf_${TARGET}_${kernel} |
471universe_kernconf_${TARGET}_${kernel}: | 474universe_kernconf_${TARGET}_${kernel}: .MAKE |
472 @(cd ${.CURDIR} && env __MAKE_CONF=/dev/null \ 473 ${SUB_MAKE} ${JFLAG} buildkernel \ 474 TARGET=${TARGET} \ 475 TARGET_ARCH=${TARGET_ARCH_${kernel}} \ 476 KERNCONF=${kernel} \ 477 > _.${TARGET}.${kernel} 2>&1 || \ 478 (echo "${TARGET} ${kernel} kernel failed," \ 479 "check _.${TARGET}.${kernel} for details"| ${MAKEFAIL})) --- 18 unchanged lines hidden --- | 475 @(cd ${.CURDIR} && env __MAKE_CONF=/dev/null \ 476 ${SUB_MAKE} ${JFLAG} buildkernel \ 477 TARGET=${TARGET} \ 478 TARGET_ARCH=${TARGET_ARCH_${kernel}} \ 479 KERNCONF=${kernel} \ 480 > _.${TARGET}.${kernel} 2>&1 || \ 481 (echo "${TARGET} ${kernel} kernel failed," \ 482 "check _.${TARGET}.${kernel} for details"| ${MAKEFAIL})) --- 18 unchanged lines hidden --- |