Deleted Added
sdiff udiff text old ( 218206 ) new ( 218524 )
full compact
1#
2# $FreeBSD: head/Makefile 218206 2011-02-02 23:59:24Z imp $
3#
4# The user-driven targets are:
5#
6# universe - *Really* build *everything* (buildworld and
7# all kernels on all architectures).
8# tinderbox - Same as universe, but presents a list of failed build
9# targets and exits with an error if there were any.
10# buildworld - Rebuild *everything*, including glue to help do

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

25# check-old-files - List obsolete files.
26# check-old-libs - List obsolete libraries.
27# delete-old - Delete obsolete directories/files/libraries.
28# delete-old-dirs - Delete obsolete directories.
29# delete-old-files - Delete obsolete files.
30# delete-old-libs - Delete obsolete libraries.
31# targets - Print a list of supported TARGET/TARGET_ARCH pairs
32# for world and kernel targets.
33#
34# This makefile is simple by design. The FreeBSD make automatically reads
35# the /usr/share/mk/sys.mk unless the -m argument is specified on the
36# command line. By keeping this makefile simple, it doesn't matter too
37# much how different the installed mk files are from those in the source
38# tree. This makefile executes a child make process, forcing it to use
39# the mk files from the source tree which are supposed to DTRT.
40#

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

302 @echo "--------------------------------------------------------------"
303 ${_+_}@cd ${.CURDIR}/usr.bin/make; \
304 ${MMAKE} obj && \
305 ${MMAKE} depend && \
306 ${MMAKE} all && \
307 ${MMAKE} install DESTDIR=${MAKEPATH} BINDIR=
308
309tinderbox:
310 @cd ${.CURDIR} && \
311 DOING_TINDERBOX=YES ${MAKE} JFLAG=${JFLAG} universe
312
313#
314# universe
315#
316# Attempt to rebuild *everything* for all supported architectures,
317# with a reasonable chance of success, regardless of how old your
318# existing system is.
319#
320.if make(universe) || make(universe_kernels) || make(tinderbox) || make(targets)
321TARGETS?=amd64 arm i386 ia64 mips pc98 powerpc sparc64 sun4v
322TARGET_ARCHES_arm?= arm armeb
323TARGET_ARCHES_mips?= mipsel mipseb mips64el mips64eb
324TARGET_ARCHES_powerpc?= powerpc powerpc64
325TARGET_ARCHES_pc98?= i386
326TARGET_ARCHES_sun4v?= sparc64
327.for target in ${TARGETS}
328TARGET_ARCHES_${target}?= ${target}
329.endfor
330
331targets:
332 @echo "Supported TARGET/TARGET_ARCH pairs for world and kernel targets"
333.for target in ${TARGETS}
334.for target_arch in ${TARGET_ARCHES_${target}}
335 @echo " ${target}/${target_arch}"
336.endfor
337.endfor
338

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

356.ORDER: universe_prologue universe_${target} universe_epilogue
357universe_${target}: universe_${target}_prologue
358universe_${target}_prologue:
359 @echo ">> ${target} started on `LC_ALL=C date`"
360.if !defined(MAKE_JUST_KERNELS)
361.for target_arch in ${TARGET_ARCHES_${target}}
362universe_${target}: universe_${target}_${target_arch}
363universe_${target}_${target_arch}: universe_${target}_prologue
364 @echo ">> ${target}.${target_arch} buildworld started on `LC_ALL=C date`"
365 @(cd ${.CURDIR} && env __MAKE_CONF=/dev/null \
366 ${MAKE} ${JFLAG} buildworld \
367 TARGET=${target} \
368 TARGET_ARCH=${target_arch} \
369 > _.${target}.${target_arch}.buildworld 2>&1 || \
370 (echo "${target}.${target_arch} world failed," \
371 "check _.${target}.${target_arch}.buildworld for details" | \
372 ${MAKEFAIL}))
373 @echo ">> ${target}.${target_arch} buildworld completed on `LC_ALL=C date`"
374.endfor
375.endif
376.if !defined(MAKE_JUST_WORLDS)
377.if exists(${.CURDIR}/sys/${target}/conf/NOTES)
378 @(cd ${.CURDIR}/sys/${target}/conf && env __MAKE_CONF=/dev/null \
379 ${MAKE} LINT > ${.CURDIR}/_.${target}.makeLINT 2>&1 || \
380 (echo "${target} 'make LINT' failed," \
381 "check _.${target}.makeLINT for details"| ${MAKEFAIL}))

--- 46 unchanged lines hidden ---