Makefile (111089) | Makefile (111131) |
---|---|
1# | 1# |
2# $FreeBSD: head/Makefile 111089 2003-02-18 17:35:20Z phk $ | 2# $FreeBSD: head/Makefile 111131 2003-02-19 15:40:19Z ru $ |
3# 4# The user-driven targets are: 5# | 3# 4# The user-driven targets are: 5# |
6# universe - *Really* build *everything*: Buildworld and 7# all kernels on all architectures. | 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 | 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 | 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 |
213universe: 214 @echo "--------------------------------------------------------------" 215 @echo ">>> make universe started on ${STARTTIME}" 216 @echo "--------------------------------------------------------------" 217.for arch in i386 sparc64 alpha ia64 | 220universe: 221 @echo "--------------------------------------------------------------" 222 @echo ">>> make universe started on ${STARTTIME}" 223 @echo "--------------------------------------------------------------" 224.for arch in i386 sparc64 alpha ia64 |
218 @printf ">> ${arch} started on `LC_ALL=C date`\n" 219 -cd ${.CURDIR} && make ${JFLAG} buildworld TARGET_ARCH=${arch} \ 220 __MAKE_CONF=/dev/null \ 221 > _.${arch}.buildworld 2>&1 222 @printf ">> ${arch} buildworld ended on `LC_ALL=C date`\n" 223.if exists(${.CURDIR}/sys/${arch}/conf/NOTES) 224 -cd ${.CURDIR}/sys/${arch}/conf && make LINT \ 225 > _.${arch}.makeLINT 2>&1 | 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 |
226.endif | 235.endif |
227 cd ${.CURDIR} && make buildkernels ARCH=${arch} TARGET_ARCH=${arch} JFLAG="${JFLAG}" 228 @printf ">> ${arch} ended on `LC_ALL=C date`\n" | 236 cd ${.CURDIR} && ${MAKE} buildkernels TARGET_ARCH=${arch} TARGET=${mach} 237 @echo ">> ${mach} completed on `LC_ALL=C date`" |
229.endfor | 238.endfor |
230 @printf ">> pc98 started on `LC_ALL=C date`\n" 231 -cd ${.CURDIR} && make buildworld TARGET=pc98 TARGET_ARCH=i386 \ 232 __MAKE_CONF=/dev/null \ 233 > _.pc98.buildworld 2>&1 234 @printf ">> pc98 buildworld ended on `LC_ALL=C date`\n" 235.if exists(${.CURDIR}/sys/pc98/conf/NOTES) 236 -cd ${.CURDIR}/sys/pc98/conf && make LINT \ 237 > _.pc98.makeLINT 2>&1 238.endif 239 cd ${.CURDIR} && make buildkernels ARCH=pc98 TARGET_ARCH=i386 \ 240 JFLAG="${JFLAG}" 241 @printf ">> pc98 ended on `LC_ALL=C date`\n" | 239.endfor |
242 @echo "--------------------------------------------------------------" 243 @printf ">>> make universe completed on `LC_ALL=C date`\n (started ${STARTTIME})\n" 244 @echo "--------------------------------------------------------------" 245 | 240 @echo "--------------------------------------------------------------" 241 @printf ">>> make universe completed on `LC_ALL=C date`\n (started ${STARTTIME})\n" 242 @echo "--------------------------------------------------------------" 243 |
246KERNCONFS != echo ${.CURDIR}/sys/${ARCH}/conf/[A-Z]* 247KERNCONF2 = ${KERNCONFS:T:N*[a-z]*:NCVS:NNOTES} | 244KERNCONFS!= cd ${.CURDIR}/sys/${TARGET}/conf && \ 245 find [A-Z]*[A-Z] -type f -maxdepth 0 ! -name NOTES |
248 249buildkernels: | 246 247buildkernels: |
250.for kernel in ${KERNCONF2} 251.if exists(${.CURDIR}/sys/${ARCH}/conf/${kernel}) 252 -cd ${.CURDIR} && make ${JFLAG} buildkernel \ 253 ARCH=${ARCH} TARGET_ARCH=${TARGET_ARCH} KERNCONF=${kernel} \ 254 __MAKE_CONF=/dev/null \ 255 > _.${ARCH}.${kernel} 2>&1 256.endif | 248.for kernel in ${KERNCONFS} 249 -cd ${.CURDIR} && ${MAKE} buildkernel \ 250 KERNCONF=${kernel} \ 251 __MAKE_CONF=/dev/null \ 252 > _.${TARGET}.${kernel} 2>&1 |
257.endfor | 253.endfor |