1#
| 1#
|
2# $FreeBSD: head/Makefile 158453 2006-05-11 18:54:16Z jhb $
| 2# $FreeBSD: head/Makefile 158962 2006-05-26 18:10:06Z netchild $
|
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# installkernel.debug 15# reinstallkernel - Reinstall the kernel and the kernel-modules. 16# reinstallkernel.debug 17# kernel - buildkernel + installkernel.
| 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# installkernel.debug 15# reinstallkernel - Reinstall the kernel and the kernel-modules. 16# reinstallkernel.debug 17# kernel - buildkernel + installkernel.
|
| 18# doxygen - Build API documentation of the kernel, needs doxygen.
|
18# update - Convenient way to update your source tree (cvs). 19# check-old - Print a list of old files/directories in the system. 20# delete-old - Delete obsolete files and directories interactively. 21# delete-old-libs - Delete obsolete libraries interactively. 22# 23# This makefile is simple by design. The FreeBSD make automatically reads 24# the /usr/share/mk/sys.mk unless the -m argument is specified on the 25# command line. By keeping this makefile simple, it doesn't matter too 26# much how different the installed mk files are from those in the source 27# tree. This makefile executes a child make process, forcing it to use 28# the mk files from the source tree which are supposed to DTRT. 29# 30# The user-driven targets (as listed above) are implemented in Makefile.inc1. 31# 32# If you want to build your system from source be sure that /usr/obj has 33# at least 400MB of diskspace available. 34# 35# For individuals wanting to build from the sources currently on their 36# system, the simple instructions are: 37# 38# 1. `cd /usr/src' (or to the directory containing your source tree). 39# 2. `make world' 40# 41# For individuals wanting to upgrade their sources (even if only a 42# delta of a few days): 43# 44# 1. `cd /usr/src' (or to the directory containing your source tree). 45# 2. `make buildworld' 46# 3. `make buildkernel KERNCONF=YOUR_KERNEL_HERE' (default is GENERIC). 47# 4. `make installkernel KERNCONF=YOUR_KERNEL_HERE' (default is GENERIC). 48# 5. `reboot' (in single user mode: boot -s from the loader prompt). 49# 6. `mergemaster -p' 50# 7. `make installworld' 51# 8. `make delete-old' 52# 9. `mergemaster' 53# 10. `reboot' 54# 11. `make delete-old-libs' (in case no 3rd party program uses them anymore) 55# 56# See src/UPDATING `COMMON ITEMS' for more complete information. 57# 58# If TARGET_ARCH=arch (e.g. ia64, sparc64, ...) is specified you can 59# cross build world for other architectures using the buildworld target, 60# and once the world is built you can cross build a kernel using the 61# buildkernel target. 62# 63# Define the user-driven targets. These are listed here in alphabetical 64# order, but that's not important. 65# 66# Targets that begin with underscore are internal targets intended for 67# developer convenience only. They are intentionally not documented and 68# completely subject to change without notice. 69# 70TGTS= all all-man buildenv buildkernel buildworld check-old checkdpadd \ 71 clean cleandepend cleandir delete-old delete-old-libs depend \
| 19# update - Convenient way to update your source tree (cvs). 20# check-old - Print a list of old files/directories in the system. 21# delete-old - Delete obsolete files and directories interactively. 22# delete-old-libs - Delete obsolete libraries interactively. 23# 24# This makefile is simple by design. The FreeBSD make automatically reads 25# the /usr/share/mk/sys.mk unless the -m argument is specified on the 26# command line. By keeping this makefile simple, it doesn't matter too 27# much how different the installed mk files are from those in the source 28# tree. This makefile executes a child make process, forcing it to use 29# the mk files from the source tree which are supposed to DTRT. 30# 31# The user-driven targets (as listed above) are implemented in Makefile.inc1. 32# 33# If you want to build your system from source be sure that /usr/obj has 34# at least 400MB of diskspace available. 35# 36# For individuals wanting to build from the sources currently on their 37# system, the simple instructions are: 38# 39# 1. `cd /usr/src' (or to the directory containing your source tree). 40# 2. `make world' 41# 42# For individuals wanting to upgrade their sources (even if only a 43# delta of a few days): 44# 45# 1. `cd /usr/src' (or to the directory containing your source tree). 46# 2. `make buildworld' 47# 3. `make buildkernel KERNCONF=YOUR_KERNEL_HERE' (default is GENERIC). 48# 4. `make installkernel KERNCONF=YOUR_KERNEL_HERE' (default is GENERIC). 49# 5. `reboot' (in single user mode: boot -s from the loader prompt). 50# 6. `mergemaster -p' 51# 7. `make installworld' 52# 8. `make delete-old' 53# 9. `mergemaster' 54# 10. `reboot' 55# 11. `make delete-old-libs' (in case no 3rd party program uses them anymore) 56# 57# See src/UPDATING `COMMON ITEMS' for more complete information. 58# 59# If TARGET_ARCH=arch (e.g. ia64, sparc64, ...) is specified you can 60# cross build world for other architectures using the buildworld target, 61# and once the world is built you can cross build a kernel using the 62# buildkernel target. 63# 64# Define the user-driven targets. These are listed here in alphabetical 65# order, but that's not important. 66# 67# Targets that begin with underscore are internal targets intended for 68# developer convenience only. They are intentionally not documented and 69# completely subject to change without notice. 70# 71TGTS= all all-man buildenv buildkernel buildworld check-old checkdpadd \ 72 clean cleandepend cleandir delete-old delete-old-libs depend \
|
72 distribute distributeworld distrib-dirs distribution everything \ 73 hierarchy install installcheck installkernel installkernel.debug\ 74 reinstallkernel reinstallkernel.debug installworld \ 75 kernel-toolchain libraries lint maninstall \
| 73 distribute distributeworld distrib-dirs distribution doxygen \ 74 everything hierarchy install installcheck installkernel \ 75 installkernel.debug reinstallkernel reinstallkernel.debug \ 76 installworld kernel-toolchain libraries lint maninstall \
|
76 obj objlink regress rerelease showconfig tags toolchain update \ 77 _worldtmp _legacy _bootstrap-tools _cleanobj _obj \ 78 _build-tools _cross-tools _includes _libraries _depend \ 79 build32 distribute32 install32 80TGTS+= ${SUBDIR_TARGETS} 81 82BITGTS= files includes 83BITGTS:=${BITGTS} ${BITGTS:S/^/build/} ${BITGTS:S/^/install/} 84TGTS+= ${BITGTS} 85 86.ORDER: buildworld installworld 87.ORDER: buildworld distributeworld 88.ORDER: buildworld buildkernel 89.ORDER: buildkernel installkernel 90.ORDER: buildkernel installkernel.debug 91.ORDER: buildkernel reinstallkernel 92.ORDER: buildkernel reinstallkernel.debug 93 94PATH= /sbin:/bin:/usr/sbin:/usr/bin 95MAKEOBJDIRPREFIX?= /usr/obj 96_MAKEOBJDIRPREFIX!= /usr/bin/env -i PATH=${PATH} ${MAKE} \ 97 ${.MAKEFLAGS:MMAKEOBJDIRPREFIX=*} __MAKE_CONF=${__MAKE_CONF} \ 98 -f /dev/null -V MAKEOBJDIRPREFIX dummy 99.if !empty(_MAKEOBJDIRPREFIX) 100.error MAKEOBJDIRPREFIX can only be set in environment, not as a global\ 101 (in make.conf(5)) or command-line variable. 102.endif 103MAKEPATH= ${MAKEOBJDIRPREFIX}${.CURDIR}/make.${MACHINE} 104BINMAKE= \ 105 `if [ -x ${MAKEPATH}/make ]; then echo ${MAKEPATH}/make; else echo ${MAKE}; fi` \ 106 -m ${.CURDIR}/share/mk 107_MAKE= PATH=${PATH} ${BINMAKE} -f Makefile.inc1 108 109# 110# Make sure we have an up-to-date make(1). Only world and buildworld 111# should do this as those are the initial targets used for upgrades. 112# The user can define ALWAYS_CHECK_MAKE to have this check performed 113# for all targets. 114# 115.if defined(ALWAYS_CHECK_MAKE) 116${TGTS}: upgrade_checks 117.else 118buildworld: upgrade_checks 119.endif 120 121# 122# This 'cleanworld' target is not included in TGTS, because it is not a 123# recursive target. All of the work for it is done right here. It is 124# expected that BW_CANONICALOBJDIR == the CANONICALOBJDIR as would be 125# created by bsd.obj.mk, except that we don't want to .include that file 126# in this makefile. 127# 128# In the following, the first 'rm' in a series will usually remove all 129# files and directories. If it does not, then there are probably some 130# files with chflags set, so this unsets them and tries the 'rm' a 131# second time. There are situations where this target will be cleaning 132# some directories via more than one method, but that duplication is 133# needed to correctly handle all the possible situations. 134# 135BW_CANONICALOBJDIR:=${MAKEOBJDIRPREFIX}${.CURDIR} 136cleanworld: 137.if ${.CURDIR} == ${.OBJDIR} || ${.CURDIR}/obj == ${.OBJDIR} 138.if exists(${BW_CANONICALOBJDIR}/) 139 -rm -rf ${BW_CANONICALOBJDIR}/* 140 chflags -R 0 ${BW_CANONICALOBJDIR} 141 rm -rf ${BW_CANONICALOBJDIR}/* 142.endif 143 # To be safe in this case, fall back to a 'make cleandir' 144 ${_+_}@cd ${.CURDIR}; ${_MAKE} cleandir 145.else 146 -rm -rf ${.OBJDIR}/* 147 chflags -R 0 ${.OBJDIR} 148 rm -rf ${.OBJDIR}/* 149.endif 150 151# 152# Handle the user-driven targets, using the source relative mk files. 153# 154 155${TGTS}: 156 ${_+_}@cd ${.CURDIR}; \ 157 ${_MAKE} ${.TARGET} 158 159# Set a reasonable default 160.MAIN: all 161 162STARTTIME!= LC_ALL=C date 163 164.if defined(HISTORICAL_MAKE_WORLD) || defined(DESTDIR) 165# 166# world 167# 168# Attempt to rebuild and reinstall everything. This target is not to be 169# used for upgrading an existing FreeBSD system, because the kernel is 170# not included. One can argue that this target doesn't build everything 171# then. 172# 173world: upgrade_checks 174 @echo "--------------------------------------------------------------" 175 @echo ">>> make world started on ${STARTTIME}" 176 @echo "--------------------------------------------------------------" 177.if target(pre-world) 178 @echo 179 @echo "--------------------------------------------------------------" 180 @echo ">>> Making 'pre-world' target" 181 @echo "--------------------------------------------------------------" 182 ${_+_}@cd ${.CURDIR}; ${_MAKE} pre-world 183.endif 184 ${_+_}@cd ${.CURDIR}; ${_MAKE} buildworld 185 ${_+_}@cd ${.CURDIR}; ${_MAKE} -B installworld 186.if target(post-world) 187 @echo 188 @echo "--------------------------------------------------------------" 189 @echo ">>> Making 'post-world' target" 190 @echo "--------------------------------------------------------------" 191 ${_+_}@cd ${.CURDIR}; ${_MAKE} post-world 192.endif 193 @echo 194 @echo "--------------------------------------------------------------" 195 @echo ">>> make world completed on `LC_ALL=C date`" 196 @echo " (started ${STARTTIME})" 197 @echo "--------------------------------------------------------------" 198.else 199world: 200 @echo "WARNING: make world will overwrite your existing FreeBSD" 201 @echo "installation without also building and installing a new" 202 @echo "kernel. This can be dangerous. Please read the handbook," 203 @echo "'Rebuilding world', for how to upgrade your system." 204 @echo "Define DESTDIR to where you want to install FreeBSD," 205 @echo "including /, to override this warning and proceed as usual." 206 @echo "You may get the historical 'make world' behavior by defining" 207 @echo "HISTORICAL_MAKE_WORLD. You should understand the implications" 208 @echo "before doing this." 209 @echo "" 210 @echo "Bailing out now..." 211 @false 212.endif 213 214# 215# kernel 216# 217# Short hand for `make buildkernel installkernel' 218# 219kernel: buildkernel installkernel 220 221# 222# Perform a few tests to determine if the installed tools are adequate 223# for building the world. 224# 225upgrade_checks: 226 @if ! (cd ${.CURDIR}/tools/build/make_check && \ 227 PATH=${PATH} ${BINMAKE} obj >/dev/null 2>&1 && \ 228 PATH=${PATH} ${BINMAKE} >/dev/null 2>&1); \ 229 then \ 230 (cd ${.CURDIR} && make make); \ 231 fi 232 233# 234# Upgrade make(1) to the current version using the installed 235# headers, libraries and tools. 236# 237MMAKEENV= MAKEOBJDIRPREFIX=${MAKEPATH} \ 238 DESTDIR= \ 239 INSTALL="sh ${.CURDIR}/tools/install.sh" 240MMAKE= ${MMAKEENV} make \ 241 -D_UPGRADING \ 242 -DNOMAN -DNO_MAN -DNOSHARED -DNO_SHARED \ 243 -DNO_CPU_CFLAGS -DNO_WERROR 244 245make: .PHONY 246 @echo 247 @echo "--------------------------------------------------------------" 248 @echo ">>> Building an up-to-date make(1)" 249 @echo "--------------------------------------------------------------" 250 ${_+_}@cd ${.CURDIR}/usr.bin/make; \ 251 ${MMAKE} obj && \ 252 ${MMAKE} depend && \ 253 ${MMAKE} all && \ 254 ${MMAKE} install DESTDIR=${MAKEPATH} BINDIR= 255 256# 257# universe 258# 259# Attempt to rebuild *everything* for all supported architectures, 260# with a reasonable chance of success, regardless of how old your 261# existing system is. 262# 263.if make(universe) 264universe: universe_prologue 265universe_prologue: 266 @echo "--------------------------------------------------------------" 267 @echo ">>> make universe started on ${STARTTIME}" 268 @echo "--------------------------------------------------------------" 269.for target in i386 i386:pc98 sparc64 ia64 amd64 270.for arch in ${target:C/:.*$//} 271.for mach in ${target:C/^.*://} 272KERNCONFS!= cd ${.CURDIR}/sys/${mach}/conf && \ 273 find [A-Z]*[A-Z] -type f -maxdepth 0 \ 274 ! -name DEFAULTS ! -name LINT 275KERNCONFS:= ${KERNCONFS:S/^NOTES$/LINT/} 276universe: universe_${mach} 277.ORDER: universe_prologue universe_${mach} universe_epilogue 278universe_${mach}: 279 @echo ">> ${mach} started on `LC_ALL=C date`" 280 -cd ${.CURDIR} && ${MAKE} ${JFLAG} buildworld \ 281 TARGET_ARCH=${arch} TARGET=${mach} \ 282 __MAKE_CONF=/dev/null \ 283 > _.${mach}.buildworld 2>&1 284 @echo ">> ${mach} buildworld completed on `LC_ALL=C date`" 285.if exists(${.CURDIR}/sys/${mach}/conf/NOTES) 286 -cd ${.CURDIR}/sys/${mach}/conf && ${MAKE} LINT \ 287 > ${.CURDIR}/_.${mach}.makeLINT 2>&1 288.endif 289.for kernel in ${KERNCONFS} 290 -cd ${.CURDIR} && ${MAKE} ${JFLAG} buildkernel \ 291 TARGET_ARCH=${arch} TARGET=${mach} \ 292 KERNCONF=${kernel} \ 293 __MAKE_CONF=/dev/null \ 294 > _.${mach}.${kernel} 2>&1 295.endfor 296 @echo ">> ${mach} completed on `LC_ALL=C date`" 297.endfor 298.endfor 299.endfor 300universe: universe_epilogue 301universe_epilogue: 302 @echo "--------------------------------------------------------------" 303 @echo ">>> make universe completed on `LC_ALL=C date`" 304 @echo " (started ${STARTTIME})" 305 @echo "--------------------------------------------------------------" 306.endif
| 77 obj objlink regress rerelease showconfig tags toolchain update \ 78 _worldtmp _legacy _bootstrap-tools _cleanobj _obj \ 79 _build-tools _cross-tools _includes _libraries _depend \ 80 build32 distribute32 install32 81TGTS+= ${SUBDIR_TARGETS} 82 83BITGTS= files includes 84BITGTS:=${BITGTS} ${BITGTS:S/^/build/} ${BITGTS:S/^/install/} 85TGTS+= ${BITGTS} 86 87.ORDER: buildworld installworld 88.ORDER: buildworld distributeworld 89.ORDER: buildworld buildkernel 90.ORDER: buildkernel installkernel 91.ORDER: buildkernel installkernel.debug 92.ORDER: buildkernel reinstallkernel 93.ORDER: buildkernel reinstallkernel.debug 94 95PATH= /sbin:/bin:/usr/sbin:/usr/bin 96MAKEOBJDIRPREFIX?= /usr/obj 97_MAKEOBJDIRPREFIX!= /usr/bin/env -i PATH=${PATH} ${MAKE} \ 98 ${.MAKEFLAGS:MMAKEOBJDIRPREFIX=*} __MAKE_CONF=${__MAKE_CONF} \ 99 -f /dev/null -V MAKEOBJDIRPREFIX dummy 100.if !empty(_MAKEOBJDIRPREFIX) 101.error MAKEOBJDIRPREFIX can only be set in environment, not as a global\ 102 (in make.conf(5)) or command-line variable. 103.endif 104MAKEPATH= ${MAKEOBJDIRPREFIX}${.CURDIR}/make.${MACHINE} 105BINMAKE= \ 106 `if [ -x ${MAKEPATH}/make ]; then echo ${MAKEPATH}/make; else echo ${MAKE}; fi` \ 107 -m ${.CURDIR}/share/mk 108_MAKE= PATH=${PATH} ${BINMAKE} -f Makefile.inc1 109 110# 111# Make sure we have an up-to-date make(1). Only world and buildworld 112# should do this as those are the initial targets used for upgrades. 113# The user can define ALWAYS_CHECK_MAKE to have this check performed 114# for all targets. 115# 116.if defined(ALWAYS_CHECK_MAKE) 117${TGTS}: upgrade_checks 118.else 119buildworld: upgrade_checks 120.endif 121 122# 123# This 'cleanworld' target is not included in TGTS, because it is not a 124# recursive target. All of the work for it is done right here. It is 125# expected that BW_CANONICALOBJDIR == the CANONICALOBJDIR as would be 126# created by bsd.obj.mk, except that we don't want to .include that file 127# in this makefile. 128# 129# In the following, the first 'rm' in a series will usually remove all 130# files and directories. If it does not, then there are probably some 131# files with chflags set, so this unsets them and tries the 'rm' a 132# second time. There are situations where this target will be cleaning 133# some directories via more than one method, but that duplication is 134# needed to correctly handle all the possible situations. 135# 136BW_CANONICALOBJDIR:=${MAKEOBJDIRPREFIX}${.CURDIR} 137cleanworld: 138.if ${.CURDIR} == ${.OBJDIR} || ${.CURDIR}/obj == ${.OBJDIR} 139.if exists(${BW_CANONICALOBJDIR}/) 140 -rm -rf ${BW_CANONICALOBJDIR}/* 141 chflags -R 0 ${BW_CANONICALOBJDIR} 142 rm -rf ${BW_CANONICALOBJDIR}/* 143.endif 144 # To be safe in this case, fall back to a 'make cleandir' 145 ${_+_}@cd ${.CURDIR}; ${_MAKE} cleandir 146.else 147 -rm -rf ${.OBJDIR}/* 148 chflags -R 0 ${.OBJDIR} 149 rm -rf ${.OBJDIR}/* 150.endif 151 152# 153# Handle the user-driven targets, using the source relative mk files. 154# 155 156${TGTS}: 157 ${_+_}@cd ${.CURDIR}; \ 158 ${_MAKE} ${.TARGET} 159 160# Set a reasonable default 161.MAIN: all 162 163STARTTIME!= LC_ALL=C date 164 165.if defined(HISTORICAL_MAKE_WORLD) || defined(DESTDIR) 166# 167# world 168# 169# Attempt to rebuild and reinstall everything. This target is not to be 170# used for upgrading an existing FreeBSD system, because the kernel is 171# not included. One can argue that this target doesn't build everything 172# then. 173# 174world: upgrade_checks 175 @echo "--------------------------------------------------------------" 176 @echo ">>> make world started on ${STARTTIME}" 177 @echo "--------------------------------------------------------------" 178.if target(pre-world) 179 @echo 180 @echo "--------------------------------------------------------------" 181 @echo ">>> Making 'pre-world' target" 182 @echo "--------------------------------------------------------------" 183 ${_+_}@cd ${.CURDIR}; ${_MAKE} pre-world 184.endif 185 ${_+_}@cd ${.CURDIR}; ${_MAKE} buildworld 186 ${_+_}@cd ${.CURDIR}; ${_MAKE} -B installworld 187.if target(post-world) 188 @echo 189 @echo "--------------------------------------------------------------" 190 @echo ">>> Making 'post-world' target" 191 @echo "--------------------------------------------------------------" 192 ${_+_}@cd ${.CURDIR}; ${_MAKE} post-world 193.endif 194 @echo 195 @echo "--------------------------------------------------------------" 196 @echo ">>> make world completed on `LC_ALL=C date`" 197 @echo " (started ${STARTTIME})" 198 @echo "--------------------------------------------------------------" 199.else 200world: 201 @echo "WARNING: make world will overwrite your existing FreeBSD" 202 @echo "installation without also building and installing a new" 203 @echo "kernel. This can be dangerous. Please read the handbook," 204 @echo "'Rebuilding world', for how to upgrade your system." 205 @echo "Define DESTDIR to where you want to install FreeBSD," 206 @echo "including /, to override this warning and proceed as usual." 207 @echo "You may get the historical 'make world' behavior by defining" 208 @echo "HISTORICAL_MAKE_WORLD. You should understand the implications" 209 @echo "before doing this." 210 @echo "" 211 @echo "Bailing out now..." 212 @false 213.endif 214 215# 216# kernel 217# 218# Short hand for `make buildkernel installkernel' 219# 220kernel: buildkernel installkernel 221 222# 223# Perform a few tests to determine if the installed tools are adequate 224# for building the world. 225# 226upgrade_checks: 227 @if ! (cd ${.CURDIR}/tools/build/make_check && \ 228 PATH=${PATH} ${BINMAKE} obj >/dev/null 2>&1 && \ 229 PATH=${PATH} ${BINMAKE} >/dev/null 2>&1); \ 230 then \ 231 (cd ${.CURDIR} && make make); \ 232 fi 233 234# 235# Upgrade make(1) to the current version using the installed 236# headers, libraries and tools. 237# 238MMAKEENV= MAKEOBJDIRPREFIX=${MAKEPATH} \ 239 DESTDIR= \ 240 INSTALL="sh ${.CURDIR}/tools/install.sh" 241MMAKE= ${MMAKEENV} make \ 242 -D_UPGRADING \ 243 -DNOMAN -DNO_MAN -DNOSHARED -DNO_SHARED \ 244 -DNO_CPU_CFLAGS -DNO_WERROR 245 246make: .PHONY 247 @echo 248 @echo "--------------------------------------------------------------" 249 @echo ">>> Building an up-to-date make(1)" 250 @echo "--------------------------------------------------------------" 251 ${_+_}@cd ${.CURDIR}/usr.bin/make; \ 252 ${MMAKE} obj && \ 253 ${MMAKE} depend && \ 254 ${MMAKE} all && \ 255 ${MMAKE} install DESTDIR=${MAKEPATH} BINDIR= 256 257# 258# universe 259# 260# Attempt to rebuild *everything* for all supported architectures, 261# with a reasonable chance of success, regardless of how old your 262# existing system is. 263# 264.if make(universe) 265universe: universe_prologue 266universe_prologue: 267 @echo "--------------------------------------------------------------" 268 @echo ">>> make universe started on ${STARTTIME}" 269 @echo "--------------------------------------------------------------" 270.for target in i386 i386:pc98 sparc64 ia64 amd64 271.for arch in ${target:C/:.*$//} 272.for mach in ${target:C/^.*://} 273KERNCONFS!= cd ${.CURDIR}/sys/${mach}/conf && \ 274 find [A-Z]*[A-Z] -type f -maxdepth 0 \ 275 ! -name DEFAULTS ! -name LINT 276KERNCONFS:= ${KERNCONFS:S/^NOTES$/LINT/} 277universe: universe_${mach} 278.ORDER: universe_prologue universe_${mach} universe_epilogue 279universe_${mach}: 280 @echo ">> ${mach} started on `LC_ALL=C date`" 281 -cd ${.CURDIR} && ${MAKE} ${JFLAG} buildworld \ 282 TARGET_ARCH=${arch} TARGET=${mach} \ 283 __MAKE_CONF=/dev/null \ 284 > _.${mach}.buildworld 2>&1 285 @echo ">> ${mach} buildworld completed on `LC_ALL=C date`" 286.if exists(${.CURDIR}/sys/${mach}/conf/NOTES) 287 -cd ${.CURDIR}/sys/${mach}/conf && ${MAKE} LINT \ 288 > ${.CURDIR}/_.${mach}.makeLINT 2>&1 289.endif 290.for kernel in ${KERNCONFS} 291 -cd ${.CURDIR} && ${MAKE} ${JFLAG} buildkernel \ 292 TARGET_ARCH=${arch} TARGET=${mach} \ 293 KERNCONF=${kernel} \ 294 __MAKE_CONF=/dev/null \ 295 > _.${mach}.${kernel} 2>&1 296.endfor 297 @echo ">> ${mach} completed on `LC_ALL=C date`" 298.endfor 299.endfor 300.endfor 301universe: universe_epilogue 302universe_epilogue: 303 @echo "--------------------------------------------------------------" 304 @echo ">>> make universe completed on `LC_ALL=C date`" 305 @echo " (started ${STARTTIME})" 306 @echo "--------------------------------------------------------------" 307.endif
|