Makefile revision 218206
12061Sjkh#
250479Speter# $FreeBSD: head/Makefile 218206 2011-02-02 23:59:24Z imp $
32061Sjkh#
438666Sjb# The user-driven targets are:
532427Sjb#
6111131Sru# universe            - *Really* build *everything* (buildworld and
7111131Sru#                       all kernels on all architectures).
8217733Sbz# tinderbox           - Same as universe, but presents a list of failed build
9217733Sbz#                       targets and exits with an error if there were any.
1038666Sjb# buildworld          - Rebuild *everything*, including glue to help do
1138666Sjb#                       upgrades.
1238666Sjb# installworld        - Install everything built by "buildworld".
13159363Strhodes# world               - buildworld + installworld, no kernel.
1464049Salex# buildkernel         - Rebuild the kernel and the kernel-modules.
1564049Salex# installkernel       - Install the kernel and the kernel-modules.
16116679Ssimokawa# installkernel.debug
1766071Smarkm# reinstallkernel     - Reinstall the kernel and the kernel-modules.
18116679Ssimokawa# reinstallkernel.debug
1973504Sobrien# kernel              - buildkernel + installkernel.
20204661Simp# kernel-toolchain    - Builds the subset of world necessary to build a kernel
21158962Snetchild# doxygen             - Build API documentation of the kernel, needs doxygen.
2238666Sjb# update              - Convenient way to update your source tree (cvs).
23169597Sdes# check-old           - List obsolete directories/files/libraries.
24169597Sdes# check-old-dirs      - List obsolete directories.
25169597Sdes# check-old-files     - List obsolete files.
26169597Sdes# check-old-libs      - List obsolete libraries.
27169597Sdes# delete-old          - Delete obsolete directories/files/libraries.
28169597Sdes# delete-old-dirs     - Delete obsolete directories.
29169597Sdes# delete-old-files    - Delete obsolete files.
30169597Sdes# delete-old-libs     - Delete obsolete libraries.
31217815Sbz# targets             - Print a list of supported TARGET/TARGET_ARCH pairs
32217815Sbz#                       for world and kernel targets.
3332427Sjb#
3438666Sjb# This makefile is simple by design. The FreeBSD make automatically reads
35108451Sschweikh# the /usr/share/mk/sys.mk unless the -m argument is specified on the
3638666Sjb# command line. By keeping this makefile simple, it doesn't matter too
3738666Sjb# much how different the installed mk files are from those in the source
3838666Sjb# tree. This makefile executes a child make process, forcing it to use
3938666Sjb# the mk files from the source tree which are supposed to DTRT.
4017308Speter#
41217273Simp# Most of the user-driven targets (as listed above) are implemented in
42217294Simp# Makefile.inc1.  The exceptions are universe, tinderbox and targets.
4319175Sbde#
4496205Sjwd# If you want to build your system from source be sure that /usr/obj has
45217297Simp# at least 1GB of diskspace available.  A complete 'universe' build requires
46217297Simp# about 15GB of space.
4738042Sbde#
4896205Sjwd# For individuals wanting to build from the sources currently on their
4996205Sjwd# system, the simple instructions are:
5038042Sbde#
5196205Sjwd# 1.  `cd /usr/src'  (or to the directory containing your source tree).
52159363Strhodes# 2.  Define `HISTORICAL_MAKE_WORLD' variable (see README).
53159363Strhodes# 3.  `make world'
5417308Speter#
5596205Sjwd# For individuals wanting to upgrade their sources (even if only a
5696205Sjwd# delta of a few days):
5717308Speter#
58148330Snetchild#  1.  `cd /usr/src'       (or to the directory containing your source tree).
59148330Snetchild#  2.  `make buildworld'
60148330Snetchild#  3.  `make buildkernel KERNCONF=YOUR_KERNEL_HERE'     (default is GENERIC).
61148330Snetchild#  4.  `make installkernel KERNCONF=YOUR_KERNEL_HERE'   (default is GENERIC).
62159831Sobrien#       [steps 3. & 4. can be combined by using the "kernel" target]
63148330Snetchild#  5.  `reboot'        (in single user mode: boot -s from the loader prompt).
64148330Snetchild#  6.  `mergemaster -p'
65148330Snetchild#  7.  `make installworld'
66148330Snetchild#  8.  `make delete-old'
67178653Srwatson#  9.  `mergemaster'                         (you may wish to use -U or -ai).
68148330Snetchild# 10.  `reboot'
69148330Snetchild# 11.  `make delete-old-libs' (in case no 3rd party program uses them anymore)
7096205Sjwd#
7196205Sjwd# See src/UPDATING `COMMON ITEMS' for more complete information.
7296205Sjwd#
73162147Sru# If TARGET=machine (e.g. ia64, sparc64, ...) is specified you can
74162147Sru# cross build world for other machine types using the buildworld target,
7598723Sdillon# and once the world is built you can cross build a kernel using the
7698723Sdillon# buildkernel target.
7798723Sdillon#
7838666Sjb# Define the user-driven targets. These are listed here in alphabetical
7938666Sjb# order, but that's not important.
8017308Speter#
81123311Speter# Targets that begin with underscore are internal targets intended for
82123311Speter# developer convenience only.  They are intentionally not documented and
83123311Speter# completely subject to change without notice.
84123311Speter#
85175833Sjhb# For more information, see the build(7) manual page.
86175833Sjhb#
87169597SdesTGTS=	all all-man buildenv buildenvvars buildkernel buildworld \
88169597Sdes	check-old check-old-dirs check-old-files check-old-libs \
89169597Sdes	checkdpadd clean cleandepend cleandir \
90169597Sdes	delete-old delete-old-dirs delete-old-files delete-old-libs \
91159349Simp	depend distribute distributeworld distrib-dirs distribution doxygen \
92158962Snetchild	everything hierarchy install installcheck installkernel \
93158962Snetchild	installkernel.debug reinstallkernel reinstallkernel.debug \
94158962Snetchild	installworld kernel-toolchain libraries lint maninstall \
95156840Sru	obj objlink regress rerelease showconfig tags toolchain update \
96123311Speter	_worldtmp _legacy _bootstrap-tools _cleanobj _obj \
97137288Speter	_build-tools _cross-tools _includes _libraries _depend \
98209128Sraj	build32 builddtb distribute32 install32 xdev xdev-build xdev-install \
99209128Sraj
100156740SruTGTS+=	${SUBDIR_TARGETS}
1012061Sjkh
10297769SruBITGTS=	files includes
10397252SruBITGTS:=${BITGTS} ${BITGTS:S/^/build/} ${BITGTS:S/^/install/}
104119579SruTGTS+=	${BITGTS}
10597252Sru
10695730Sru.ORDER: buildworld installworld
10795793Sru.ORDER: buildworld distributeworld
108111617Sru.ORDER: buildworld buildkernel
10995730Sru.ORDER: buildkernel installkernel
110116679Ssimokawa.ORDER: buildkernel installkernel.debug
11195730Sru.ORDER: buildkernel reinstallkernel
112116679Ssimokawa.ORDER: buildkernel reinstallkernel.debug
11395730Sru
114110035SruPATH=	/sbin:/bin:/usr/sbin:/usr/bin
115107516SruMAKEOBJDIRPREFIX?=	/usr/obj
116138921Sru_MAKEOBJDIRPREFIX!= /usr/bin/env -i PATH=${PATH} ${MAKE} \
117156145Syar    ${.MAKEFLAGS:MMAKEOBJDIRPREFIX=*} __MAKE_CONF=${__MAKE_CONF} \
118138921Sru    -f /dev/null -V MAKEOBJDIRPREFIX dummy
119133942Sru.if !empty(_MAKEOBJDIRPREFIX)
120133942Sru.error MAKEOBJDIRPREFIX can only be set in environment, not as a global\
121156145Syar	(in make.conf(5)) or command-line variable.
122133942Sru.endif
123110035SruMAKEPATH=	${MAKEOBJDIRPREFIX}${.CURDIR}/make.${MACHINE}
124117234SruBINMAKE= \
125110035Sru	`if [ -x ${MAKEPATH}/make ]; then echo ${MAKEPATH}/make; else echo ${MAKE}; fi` \
126117229Sru	-m ${.CURDIR}/share/mk
127218206Simp_MAKE=	PATH=${PATH} ${BINMAKE} -f Makefile.inc1 TARGET=${_TARGET} TARGET_ARCH=${_TARGET_ARCH}
12854324Smarcel
129218130Simp# Guess machine architecture from machine type, and vice versa.
130218130Simp.if !defined(TARGET_ARCH) && defined(TARGET)
131218130Simp_TARGET_ARCH=	${TARGET:S/pc98/i386/:S/sun4v/sparc64/:S/mips/mipsel/}
132218130Simp.elif !defined(TARGET) && defined(TARGET_ARCH) && \
133218130Simp    ${TARGET_ARCH} != ${MACHINE_ARCH}
134218130Simp_TARGET=		${TARGET_ARCH:C/mips.*e[lb]/mips/:C/armeb/arm/}
135218130Simp.endif
136218130Simp# Legacy names, for a transition period mips:mips -> mipsel:mips
137218130Simp.if defined(TARGET) && defined(TARGET_ARCH) && \
138218130Simp    ${TARGET_ARCH} == "mips" && ${TARGET} == "mips"
139218130Simp.warning "TARGET_ARCH of mips is deprecated in favor of mipsel or mipseb"
140218130Simp.if defined(TARGET_BIG_ENDIAN)
141218130Simp_TARGET_ARCH=mipseb
142218130Simp.else
143218130Simp_TARGET_ARCH=mipsel
144218130Simp.endif
145218130Simp.endif
146218130Simp# arm with TARGET_BIG_ENDIAN -> armeb
147218130Simp.if defined(TARGET_ARCH) && ${TARGET_ARCH} == "arm" && defined(TARGET_BIG_ENDIAN)
148218130Simp.warning "TARGET_ARCH of arm with TARGET_BIG_ENDIAN is deprecated.  use armeb"
149218130Simp_TARGET_ARCH=armeb
150218130Simp.endif
151218130Simp.if defined(TARGET) && !defined(_TARGET)
152218130Simp_TARGET=${TARGET}
153218130Simp.endif
154218130Simp.if defined(TARGET_ARCH) && !defined(_TARGET_ARCH)
155218130Simp_TARGET_ARCH=${TARGET_ARCH}
156218130Simp.endif
157218130Simp# Otherwise, default to current machine type and architecture.
158218130Simp_TARGET?=	${MACHINE}
159218130Simp_TARGET_ARCH?=	${MACHINE_ARCH}
160218130Simp
16117308Speter#
162119519Smarcel# Make sure we have an up-to-date make(1). Only world and buildworld
163119519Smarcel# should do this as those are the initial targets used for upgrades.
164119519Smarcel# The user can define ALWAYS_CHECK_MAKE to have this check performed
165119519Smarcel# for all targets.
166119519Smarcel#
167119519Smarcel.if defined(ALWAYS_CHECK_MAKE)
168119579Sru${TGTS}: upgrade_checks
169119519Smarcel.else
170119519Smarcelbuildworld: upgrade_checks
171119519Smarcel.endif
172119519Smarcel
173119519Smarcel#
174126031Sgad# This 'cleanworld' target is not included in TGTS, because it is not a
175126024Sgad# recursive target.  All of the work for it is done right here.   It is
176126024Sgad# expected that BW_CANONICALOBJDIR == the CANONICALOBJDIR as would be
177126024Sgad# created by bsd.obj.mk, except that we don't want to .include that file
178126024Sgad# in this makefile.  
179126024Sgad#
180126024Sgad# In the following, the first 'rm' in a series will usually remove all
181126024Sgad# files and directories.  If it does not, then there are probably some
182126024Sgad# files with chflags set, so this unsets them and tries the 'rm' a
183126024Sgad# second time.  There are situations where this target will be cleaning
184126024Sgad# some directories via more than one method, but that duplication is
185126024Sgad# needed to correctly handle all the possible situations.
186126024Sgad#
187126024SgadBW_CANONICALOBJDIR:=${MAKEOBJDIRPREFIX}${.CURDIR}
188126031Sgadcleanworld:
189126024Sgad.if ${.CURDIR} == ${.OBJDIR} || ${.CURDIR}/obj == ${.OBJDIR}
190126024Sgad.if exists(${BW_CANONICALOBJDIR}/)
191126024Sgad	-rm -rf ${BW_CANONICALOBJDIR}/*
192172744Sdelphij	-chflags -R 0 ${BW_CANONICALOBJDIR}
193126024Sgad	rm -rf ${BW_CANONICALOBJDIR}/*
194126024Sgad.endif
195126024Sgad	#   To be safe in this case, fall back to a 'make cleandir'
196133376Sharti	${_+_}@cd ${.CURDIR}; ${_MAKE} cleandir
197126024Sgad.else
198126024Sgad	-rm -rf ${.OBJDIR}/*
199172744Sdelphij	-chflags -R 0 ${.OBJDIR}
200126024Sgad	rm -rf ${.OBJDIR}/*
201126024Sgad.endif
202125885Sgad
203125885Sgad#
20438666Sjb# Handle the user-driven targets, using the source relative mk files.
20517308Speter#
206119519Smarcel
207119579Sru${TGTS}:
208218206Simp	${_+_}@cd ${.CURDIR}; ${_MAKE} ${.TARGET}
2092302Spaul
21039206Sjkh# Set a reasonable default
21139206Sjkh.MAIN:	all
21239206Sjkh
213133945SruSTARTTIME!= LC_ALL=C date
214177609SruCHECK_TIME!= find ${.CURDIR}/sys/sys/param.h -mtime -0
215177609Sru.if !empty(CHECK_TIME)
216177609Sru.error check your date/time: ${STARTTIME}
217177609Sru.endif
218133945Sru
219132358Smarkm.if defined(HISTORICAL_MAKE_WORLD) || defined(DESTDIR)
22017308Speter#
22154324Smarcel# world
22254324Smarcel#
223132234Smarcel# Attempt to rebuild and reinstall everything. This target is not to be
224132234Smarcel# used for upgrading an existing FreeBSD system, because the kernel is
225132234Smarcel# not included. One can argue that this target doesn't build everything
226132234Smarcel# then.
22754324Smarcel#
22854324Smarcelworld: upgrade_checks
22954324Smarcel	@echo "--------------------------------------------------------------"
230118531Sru	@echo ">>> make world started on ${STARTTIME}"
23154324Smarcel	@echo "--------------------------------------------------------------"
23254324Smarcel.if target(pre-world)
23354324Smarcel	@echo
23454324Smarcel	@echo "--------------------------------------------------------------"
23554324Smarcel	@echo ">>> Making 'pre-world' target"
23654324Smarcel	@echo "--------------------------------------------------------------"
237133376Sharti	${_+_}@cd ${.CURDIR}; ${_MAKE} pre-world
23854324Smarcel.endif
239133376Sharti	${_+_}@cd ${.CURDIR}; ${_MAKE} buildworld
240133376Sharti	${_+_}@cd ${.CURDIR}; ${_MAKE} -B installworld
24154324Smarcel.if target(post-world)
24254324Smarcel	@echo
24354324Smarcel	@echo "--------------------------------------------------------------"
24454324Smarcel	@echo ">>> Making 'post-world' target"
24554324Smarcel	@echo "--------------------------------------------------------------"
246133376Sharti	${_+_}@cd ${.CURDIR}; ${_MAKE} post-world
24754324Smarcel.endif
24854324Smarcel	@echo
24954324Smarcel	@echo "--------------------------------------------------------------"
250118531Sru	@echo ">>> make world completed on `LC_ALL=C date`"
251118531Sru	@echo "                   (started ${STARTTIME})"
25254324Smarcel	@echo "--------------------------------------------------------------"
253132234Smarcel.else
254132234Smarcelworld:
255132234Smarcel	@echo "WARNING: make world will overwrite your existing FreeBSD"
256132234Smarcel	@echo "installation without also building and installing a new"
257132234Smarcel	@echo "kernel.  This can be dangerous.  Please read the handbook,"
258132588Skensmith	@echo "'Rebuilding world', for how to upgrade your system."
259132358Smarkm	@echo "Define DESTDIR to where you want to install FreeBSD,"
260132234Smarcel	@echo "including /, to override this warning and proceed as usual."
261132358Smarkm	@echo ""
262132234Smarcel	@echo "Bailing out now..."
263132234Smarcel	@false
264132234Smarcel.endif
26554324Smarcel
26654324Smarcel#
26795730Sru# kernel
26895730Sru#
26995730Sru# Short hand for `make buildkernel installkernel'
27095730Sru#
27195730Srukernel: buildkernel installkernel
27295730Sru
27395730Sru#
27438666Sjb# Perform a few tests to determine if the installed tools are adequate
275107374Sru# for building the world.
27617308Speter#
27755678Smarcelupgrade_checks:
278143032Sharti	@if ! (cd ${.CURDIR}/tools/build/make_check && \
279138515Sharti	    PATH=${PATH} ${BINMAKE} obj >/dev/null 2>&1 && \
280117793Sru	    PATH=${PATH} ${BINMAKE} >/dev/null 2>&1); \
281110035Sru	then \
282174564Simp	    (cd ${.CURDIR} && ${MAKE} make); \
283110035Sru	fi
2842061Sjkh
28517308Speter#
286107516Sru# Upgrade make(1) to the current version using the installed
287174539Simp# headers, libraries and tools.  Also, allow the location of
288174539Simp# the system bsdmake-like utility to be overridden.
28955678Smarcel#
290107516SruMMAKEENV=	MAKEOBJDIRPREFIX=${MAKEPATH} \
291107516Sru		DESTDIR= \
292107516Sru		INSTALL="sh ${.CURDIR}/tools/install.sh"
293174564SimpMMAKE=		${MMAKEENV} ${MAKE} \
294107516Sru		-D_UPGRADING \
295139112Sru		-DNOMAN -DNO_MAN -DNOSHARED -DNO_SHARED \
296164470Sjb		-DNO_CPU_CFLAGS -DNO_WERROR
297107516Sru
298122204Skrismake: .PHONY
29955678Smarcel	@echo
30055678Smarcel	@echo "--------------------------------------------------------------"
301116696Sru	@echo ">>> Building an up-to-date make(1)"
30255678Smarcel	@echo "--------------------------------------------------------------"
303133376Sharti	${_+_}@cd ${.CURDIR}/usr.bin/make; \
304107516Sru		${MMAKE} obj && \
305107516Sru		${MMAKE} depend && \
306107516Sru		${MMAKE} all && \
307107516Sru		${MMAKE} install DESTDIR=${MAKEPATH} BINDIR=
30855678Smarcel
309185499Salfredtinderbox:
310217754Sbz	@cd ${.CURDIR} && \
311216487Sjhb		DOING_TINDERBOX=YES ${MAKE} JFLAG=${JFLAG} universe
312185499Salfred
31355678Smarcel#
314111131Sru# universe
315111131Sru#
316111131Sru# Attempt to rebuild *everything* for all supported architectures,
317133945Sru# with a reasonable chance of success, regardless of how old your
318111131Sru# existing system is.
319111131Sru#
320217125Simp.if make(universe) || make(universe_kernels) || make(tinderbox) || make(targets)
321216520SnwhitehornTARGETS?=amd64 arm i386 ia64 mips pc98 powerpc sparc64 sun4v
322216520SnwhitehornTARGET_ARCHES_arm?=	arm armeb
323217123SimpTARGET_ARCHES_mips?=	mipsel mipseb mips64el mips64eb
324216520SnwhitehornTARGET_ARCHES_powerpc?=	powerpc powerpc64
325216520SnwhitehornTARGET_ARCHES_pc98?=	i386
326216520SnwhitehornTARGET_ARCHES_sun4v?=	sparc64
327216520Snwhitehorn.for target in ${TARGETS}
328216520SnwhitehornTARGET_ARCHES_${target}?= ${target}
329216520Snwhitehorn.endfor
330168280Smarcel
331217125Simptargets:
332217815Sbz	@echo "Supported TARGET/TARGET_ARCH pairs for world and kernel targets"
333217125Simp.for target in ${TARGETS}
334217125Simp.for target_arch in ${TARGET_ARCHES_${target}}
335217125Simp	@echo "    ${target}/${target_arch}"
336217125Simp.endfor
337217125Simp.endfor
338217125Simp
339185499Salfred.if defined(DOING_TINDERBOX)
340217735SbzFAILFILE=${.CURDIR}/_.tinderbox.failed
341185499SalfredMAKEFAIL=tee -a ${FAILFILE}
342185499Salfred.else
343185499SalfredMAKEFAIL=cat
344185499Salfred.endif
345185499Salfred
346133945Sruuniverse: universe_prologue
347133945Sruuniverse_prologue:
348103985Sphk	@echo "--------------------------------------------------------------"
349103985Sphk	@echo ">>> make universe started on ${STARTTIME}"
350103985Sphk	@echo "--------------------------------------------------------------"
351185499Salfred.if defined(DOING_TINDERBOX)
352217754Sbz	@rm -f ${FAILFILE}
353185499Salfred.endif
354168280Smarcel.for target in ${TARGETS}
355162147Sruuniverse: universe_${target}
356162147Sru.ORDER: universe_prologue universe_${target} universe_epilogue
357216520Snwhitehornuniverse_${target}: universe_${target}_prologue
358216520Snwhitehornuniverse_${target}_prologue:
359216520Snwhitehorn	@echo ">> ${target} started on `LC_ALL=C date`"
360179232Sjb.if !defined(MAKE_JUST_KERNELS)
361216520Snwhitehorn.for target_arch in ${TARGET_ARCHES_${target}}
362216520Snwhitehornuniverse_${target}: universe_${target}_${target_arch}
363216520Snwhitehornuniverse_${target}_${target_arch}: universe_${target}_prologue
364216520Snwhitehorn	@echo ">> ${target}.${target_arch} buildworld started on `LC_ALL=C date`"
365185250Sdes	@(cd ${.CURDIR} && env __MAKE_CONF=/dev/null \
366202629Sed	    ${MAKE} ${JFLAG} buildworld \
367162147Sru	    TARGET=${target} \
368216520Snwhitehorn	    TARGET_ARCH=${target_arch} \
369216520Snwhitehorn	    > _.${target}.${target_arch}.buildworld 2>&1 || \
370216520Snwhitehorn	    (echo "${target}.${target_arch} world failed," \
371216520Snwhitehorn	    "check _.${target}.${target_arch}.buildworld for details" | \
372216520Snwhitehorn	    ${MAKEFAIL}))
373216520Snwhitehorn	@echo ">> ${target}.${target_arch} buildworld completed on `LC_ALL=C date`"
374216520Snwhitehorn.endfor
375179232Sjb.endif
376205290Sdougb.if !defined(MAKE_JUST_WORLDS)
377162147Sru.if exists(${.CURDIR}/sys/${target}/conf/NOTES)
378185250Sdes	@(cd ${.CURDIR}/sys/${target}/conf && env __MAKE_CONF=/dev/null \
379185250Sdes	    ${MAKE} LINT > ${.CURDIR}/_.${target}.makeLINT 2>&1 || \
380185499Salfred	    (echo "${target} 'make LINT' failed," \
381185499Salfred	    "check _.${target}.makeLINT for details"| ${MAKEFAIL}))
382103985Sphk.endif
383201815Sbz	@cd ${.CURDIR} && ${MAKE} ${.MAKEFLAGS} TARGET=${target} \
384201815Sbz	    universe_kernels
385205290Sdougb.endif
386201815Sbz	@echo ">> ${target} completed on `LC_ALL=C date`"
387201815Sbz.endfor
388201815Sbzuniverse_kernels: universe_kernconfs
389202095Sbz.if !defined(TARGET)
390202095SbzTARGET!=	uname -m
391202095Sbz.endif
392201815SbzKERNCONFS!=	cd ${.CURDIR}/sys/${TARGET}/conf && \
393201815Sbz		find [A-Z0-9]*[A-Z0-9] -type f -maxdepth 0 \
394201815Sbz		! -name DEFAULTS ! -name NOTES
395201815Sbzuniverse_kernconfs:
396148154Sru.for kernel in ${KERNCONFS}
397216520SnwhitehornTARGET_ARCH_${kernel}!=	cd ${.CURDIR}/sys/${TARGET}/conf && \
398216685Simp	config -m ${.CURDIR}/sys/${TARGET}/conf/${kernel} 2> /dev/null | \
399216934Simp	grep -v WARNING: | cut -f 2
400216934Simp.if empty(TARGET_ARCH_${kernel})
401216934Simp.error "Target architecture for ${TARGET}/conf/${kernel} unknown.  config(8) likely too old."
402216934Simp.endif
403216520Snwhitehornuniverse_kernconfs: universe_kernconf_${TARGET}_${kernel}
404216520Snwhitehornuniverse_kernconf_${TARGET}_${kernel}:
405185250Sdes	@(cd ${.CURDIR} && env __MAKE_CONF=/dev/null \
406185250Sdes	    ${MAKE} ${JFLAG} buildkernel \
407201815Sbz	    TARGET=${TARGET} \
408216520Snwhitehorn	    TARGET_ARCH=${TARGET_ARCH_${kernel}} \
409148154Sru	    KERNCONF=${kernel} \
410201815Sbz	    > _.${TARGET}.${kernel} 2>&1 || \
411201815Sbz	    (echo "${TARGET} ${kernel} kernel failed," \
412201815Sbz	    "check _.${TARGET}.${kernel} for details"| ${MAKEFAIL}))
413148154Sru.endfor
414133945Sruuniverse: universe_epilogue
415133945Sruuniverse_epilogue:
416103985Sphk	@echo "--------------------------------------------------------------"
417118531Sru	@echo ">>> make universe completed on `LC_ALL=C date`"
418118531Sru	@echo "                      (started ${STARTTIME})"
419103985Sphk	@echo "--------------------------------------------------------------"
420185499Salfred.if defined(DOING_TINDERBOX)
421185499Salfred	@if [ -e ${FAILFILE} ] ; then \
422185499Salfred		echo "Tinderbox failed:" ;\
423185499Salfred		cat ${FAILFILE} ;\
424185499Salfred		exit 1 ;\
425185499Salfred	fi
426133945Sru.endif
427185499Salfred.endif
428