1# |
2# $FreeBSD: head/Makefile 111131 2003-02-19 15:40:19Z ru $ |
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". 11# world - buildworld + installworld. 12# buildkernel - Rebuild the kernel and the kernel-modules. 13# installkernel - Install the kernel and the kernel-modules. 14# reinstallkernel - Reinstall the kernel and the kernel-modules. 15# kernel - buildkernel + installkernel. --- 188 unchanged lines hidden (view full) --- 204# 205 206upgrade: aout-to-elf 207 208${UPGRADE} : upgrade_checks 209 @cd ${.CURDIR}; \ 210 ${_MAKE} -f Makefile.upgrade -m ${.CURDIR}/share/mk ${.TARGET} 211 |
212# 213# universe 214# 215# Attempt to rebuild *everything* for all supported architectures, 216# with reasonable chance of success, regardless of how old your 217# existing system is. 218# 219i386_mach= pc98 |
220universe: 221 @echo "--------------------------------------------------------------" 222 @echo ">>> make universe started on ${STARTTIME}" 223 @echo "--------------------------------------------------------------" 224.for arch in i386 sparc64 alpha ia64 |
225.for mach in ${arch} ${${arch}_mach} 226 @echo ">> ${mach} started on `LC_ALL=C date`" 227 -cd ${.CURDIR} && ${MAKE} buildworld \ 228 TARGET_ARCH=${arch} TARGET=${mach} \ 229 __MAKE_CONF=/dev/null \ 230 > _.${mach}.buildworld 2>&1 231 @echo ">> ${mach} buildworld completed on `LC_ALL=C date`" 232.if exists(${.CURDIR}/sys/${mach}/conf/NOTES) 233 -cd ${.CURDIR}/sys/${mach}/conf && ${MAKE} LINT \ 234 > _.${mach}.makeLINT 2>&1 |
235.endif |
236 cd ${.CURDIR} && ${MAKE} buildkernels TARGET_ARCH=${arch} TARGET=${mach} 237 @echo ">> ${mach} completed on `LC_ALL=C date`" |
238.endfor |
239.endfor |
240 @echo "--------------------------------------------------------------" 241 @printf ">>> make universe completed on `LC_ALL=C date`\n (started ${STARTTIME})\n" 242 @echo "--------------------------------------------------------------" 243 |
244KERNCONFS!= cd ${.CURDIR}/sys/${TARGET}/conf && \ 245 find [A-Z]*[A-Z] -type f -maxdepth 0 ! -name NOTES |
246 247buildkernels: |
248.for kernel in ${KERNCONFS} 249 -cd ${.CURDIR} && ${MAKE} buildkernel \ 250 KERNCONF=${kernel} \ 251 __MAKE_CONF=/dev/null \ 252 > _.${TARGET}.${kernel} 2>&1 |
253.endfor |