Deleted Added
full compact
Makefile (185250) Makefile (185499)
1#
1#
2# $FreeBSD: head/Makefile 185250 2008-11-24 11:23:14Z des $
2# $FreeBSD: head/Makefile 185499 2008-12-01 00:45:51Z alfred $
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".

--- 251 unchanged lines hidden (view full) ---

262 @echo ">>> Building an up-to-date make(1)"
263 @echo "--------------------------------------------------------------"
264 ${_+_}@cd ${.CURDIR}/usr.bin/make; \
265 ${MMAKE} obj && \
266 ${MMAKE} depend && \
267 ${MMAKE} all && \
268 ${MMAKE} install DESTDIR=${MAKEPATH} BINDIR=
269
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".

--- 251 unchanged lines hidden (view full) ---

262 @echo ">>> Building an up-to-date make(1)"
263 @echo "--------------------------------------------------------------"
264 ${_+_}@cd ${.CURDIR}/usr.bin/make; \
265 ${MMAKE} obj && \
266 ${MMAKE} depend && \
267 ${MMAKE} all && \
268 ${MMAKE} install DESTDIR=${MAKEPATH} BINDIR=
269
270tinderbox:
271 cd ${.CURDIR} && \
272 DOING_TINDERBOX=YES ${MAKE} ${JFLAG} universe
273
270#
271# universe
272#
273# Attempt to rebuild *everything* for all supported architectures,
274# with a reasonable chance of success, regardless of how old your
275# existing system is.
276#
274#
275# universe
276#
277# Attempt to rebuild *everything* for all supported architectures,
278# with a reasonable chance of success, regardless of how old your
279# existing system is.
280#
277.if make(universe)
281.if make(universe) || make(tinderbox)
278TARGETS?=amd64 arm i386 ia64 pc98 powerpc sparc64 sun4v
279
282TARGETS?=amd64 arm i386 ia64 pc98 powerpc sparc64 sun4v
283
284.if defined(DOING_TINDERBOX)
285FAILFILE=tinderbox.failed
286MAKEFAIL=tee -a ${FAILFILE}
287.else
288MAKEFAIL=cat
289.endif
290
280universe: universe_prologue
281universe_prologue:
282 @echo "--------------------------------------------------------------"
283 @echo ">>> make universe started on ${STARTTIME}"
284 @echo "--------------------------------------------------------------"
291universe: universe_prologue
292universe_prologue:
293 @echo "--------------------------------------------------------------"
294 @echo ">>> make universe started on ${STARTTIME}"
295 @echo "--------------------------------------------------------------"
296.if defined(DOING_TINDERBOX)
297 rm -f ${FAILFILE}
298.endif
285.for target in ${TARGETS}
286KERNCONFS!= cd ${.CURDIR}/sys/${target}/conf && \
287 find [A-Z]*[A-Z] -type f -maxdepth 0 \
288 ! -name DEFAULTS ! -name LINT
289KERNCONFS:= ${KERNCONFS:S/^NOTES$/LINT/}
290universe: universe_${target}
291.ORDER: universe_prologue universe_${target} universe_epilogue
292universe_${target}:
293.if !defined(MAKE_JUST_KERNELS)
294 @echo ">> ${target} started on `LC_ALL=C date`"
295 @(cd ${.CURDIR} && env __MAKE_CONF=/dev/null \
296 ${MAKE} ${JFLAG} buildworld \
297 TARGET=${target} \
298 > _.${target}.buildworld 2>&1 || \
299.for target in ${TARGETS}
300KERNCONFS!= cd ${.CURDIR}/sys/${target}/conf && \
301 find [A-Z]*[A-Z] -type f -maxdepth 0 \
302 ! -name DEFAULTS ! -name LINT
303KERNCONFS:= ${KERNCONFS:S/^NOTES$/LINT/}
304universe: universe_${target}
305.ORDER: universe_prologue universe_${target} universe_epilogue
306universe_${target}:
307.if !defined(MAKE_JUST_KERNELS)
308 @echo ">> ${target} started on `LC_ALL=C date`"
309 @(cd ${.CURDIR} && env __MAKE_CONF=/dev/null \
310 ${MAKE} ${JFLAG} buildworld \
311 TARGET=${target} \
312 > _.${target}.buildworld 2>&1 || \
299 echo "${target} world failed," \
300 "check _.${target}.buildworld for details")
313 (echo "${target} world failed," \
314 "check _.${target}.buildworld for details" | ${MAKEFAIL}))
301 @echo ">> ${target} buildworld completed on `LC_ALL=C date`"
302.endif
303.if exists(${.CURDIR}/sys/${target}/conf/NOTES)
304 @(cd ${.CURDIR}/sys/${target}/conf && env __MAKE_CONF=/dev/null \
305 ${MAKE} LINT > ${.CURDIR}/_.${target}.makeLINT 2>&1 || \
315 @echo ">> ${target} buildworld completed on `LC_ALL=C date`"
316.endif
317.if exists(${.CURDIR}/sys/${target}/conf/NOTES)
318 @(cd ${.CURDIR}/sys/${target}/conf && env __MAKE_CONF=/dev/null \
319 ${MAKE} LINT > ${.CURDIR}/_.${target}.makeLINT 2>&1 || \
306 echo "${target} 'make LINT' failed," \
307 "check _.${target}.makeLINT for details")
320 (echo "${target} 'make LINT' failed," \
321 "check _.${target}.makeLINT for details"| ${MAKEFAIL}))
308.endif
309.for kernel in ${KERNCONFS}
310 @(cd ${.CURDIR} && env __MAKE_CONF=/dev/null \
311 ${MAKE} ${JFLAG} buildkernel \
312 TARGET=${target} \
313 KERNCONF=${kernel} \
314 > _.${target}.${kernel} 2>&1 || \
322.endif
323.for kernel in ${KERNCONFS}
324 @(cd ${.CURDIR} && env __MAKE_CONF=/dev/null \
325 ${MAKE} ${JFLAG} buildkernel \
326 TARGET=${target} \
327 KERNCONF=${kernel} \
328 > _.${target}.${kernel} 2>&1 || \
315 echo "${target} ${kernel} kernel failed," \
316 "check _.${target}.${kernel} for details")
329 (echo "${target} ${kernel} kernel failed," \
330 "check _.${target}.${kernel} for details"| ${MAKEFAIL}))
317.endfor
318 @echo ">> ${target} completed on `LC_ALL=C date`"
319.endfor
320universe: universe_epilogue
321universe_epilogue:
322 @echo "--------------------------------------------------------------"
323 @echo ">>> make universe completed on `LC_ALL=C date`"
324 @echo " (started ${STARTTIME})"
325 @echo "--------------------------------------------------------------"
331.endfor
332 @echo ">> ${target} completed on `LC_ALL=C date`"
333.endfor
334universe: universe_epilogue
335universe_epilogue:
336 @echo "--------------------------------------------------------------"
337 @echo ">>> make universe completed on `LC_ALL=C date`"
338 @echo " (started ${STARTTIME})"
339 @echo "--------------------------------------------------------------"
340.if defined(DOING_TINDERBOX)
341 @if [ -e ${FAILFILE} ] ; then \
342 echo "Tinderbox failed:" ;\
343 cat ${FAILFILE} ;\
344 exit 1 ;\
345 fi
326.endif
346.endif
347.endif