]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - share/man/man7/build.7
Upgrade Unbound to 1.6.2. More to follow.
[FreeBSD/FreeBSD.git] / share / man / man7 / build.7
1 .\" Copyright (c) 2000
2 .\"     Mike W. Meyer
3 .\"
4 .\" Redistribution and use in source and binary forms, with or without
5 .\" modification, are permitted provided that the following conditions
6 .\" are met:
7 .\" 1. Redistributions of source code must retain the above copyright
8 .\"    notice, this list of conditions and the following disclaimer.
9 .\" 2. Redistributions in binary form must reproduce the above copyright
10 .\"    notice, this list of conditions and the following disclaimer in the
11 .\"    documentation and/or other materials provided with the distribution.
12 .\"
13 .\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND
14 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
15 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
16 .\" ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR BE LIABLE
17 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
18 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
19 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
20 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
21 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
22 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
23 .\" SUCH DAMAGE.
24 .\"
25 .\" $FreeBSD$
26 .\"
27 .Dd December 24, 2017
28 .Dt BUILD 7
29 .Os
30 .Sh NAME
31 .Nm build
32 .Nd information on how to build the system
33 .Sh DESCRIPTION
34 The sources for the
35 .Fx
36 system and its applications are contained in three different directories,
37 normally
38 .Pa /usr/src ,
39 .Pa /usr/doc ,
40 and
41 .Pa /usr/ports .
42 These directories may be initially empty or non-existent until updated with
43 .Xr svn 1
44 or
45 .Xr portsnap 8 .
46 Directory
47 .Pa /usr/src
48 contains the
49 .Dq "base system"
50 sources, which is loosely defined as the things required to rebuild
51 the system to a useful state.
52 Directory
53 .Pa /usr/doc
54 contains the source for the system documentation, excluding the manual
55 pages.
56 Directory
57 .Pa /usr/ports
58 contains a tree that provides a consistent interface for building and
59 installing third party applications.
60 For more information about the ports build process, see
61 .Xr ports 7 .
62 .Pp
63 The
64 .Xr make 1
65 command is used in each of these directories to build and install the
66 things in that directory.
67 Issuing the
68 .Xr make 1
69 command in any directory or
70 subdirectory of those directories has the same effect as issuing the
71 same command in all subdirectories of that directory.
72 With no target specified, the things in that directory are just built.
73 .Pp
74 A source tree is allowed to be read-only.
75 As described in
76 .Xr make 1 ,
77 objects are usually built in a separate object directory hierarchy
78 specified by the environment variable
79 .Va MAKEOBJDIRPREFIX ,
80 or under
81 .Pa /usr/obj
82 if variable
83 .Va MAKEOBJDIRPREFIX
84 is not set.
85 The canonical object directory is described in the documentation for the
86 .Cm buildworld
87 target below.
88 .Pp
89 The build may be controlled by defining
90 .Xr make 1
91 variables described in the
92 .Sx ENVIRONMENT
93 section below, and by the variables documented in
94 .Xr make.conf 5 .
95 .Pp
96 The following list provides the names and actions for the targets
97 supported by the build system:
98 .Bl -tag -width ".Cm cleandepend"
99 .It Cm analyze
100 Run Clang static analyzer against all objects and present output on stdout.
101 .It Cm check
102 Run tests for a given subdirectory.
103 The default directory used is
104 .Pa ${.OBJDIR} ,
105 but the check directory can be changed with
106 .Pa ${CHECKDIR} .
107 .It Cm checkworld
108 Run the
109 .Fx
110 test suite on installed world.
111 .It Cm clean
112 Remove any files created during the build process.
113 .It Cm cleandepend
114 Remove the
115 .Pa ${.OBJDIR}/${DEPENDFILE}*
116 files generated by prior
117 .Dq Li "make"
118 and
119 .Dq Li "make depend"
120 steps.
121 .It Cm cleandir
122 Remove the canonical object directory if it exists, or perform
123 actions equivalent to
124 .Dq Li "make clean cleandepend"
125 if it does not.
126 This target will also remove an
127 .Pa obj
128 link in
129 .Pa ${.CURDIR}
130 if that exists.
131 .Pp
132 It is advisable to run
133 .Dq Li "make cleandir"
134 twice: the first invocation will remove the canonical object directory
135 and the second one will clean up
136 .Pa ${.CURDIR} .
137 .It Cm depend
138 Generate a list of build dependencies in file
139 .Pa ${.OBJDIR}/${DEPENDFILE} .
140 Per-object dependencies are generated at build time and stored in
141 .Pa ${.OBJDIR}/${DEPENDFILE}.${OBJ} .
142 .It Cm install
143 Install the results of the build to the appropriate location in the
144 installation directory hierarchy specified in variable
145 .Va DESTDIR .
146 .It Cm obj
147 Create the canonical object directory associated with the current
148 directory.
149 .It Cm objlink
150 Create a symbolic link to the canonical object directory in
151 .Pa ${.CURDIR} .
152 .It Cm tags
153 Generate a tags file using the program specified in the
154 .Xr make 1
155 variable
156 .Va CTAGS .
157 The build system supports
158 .Xr ctags 1
159 and
160 .Nm "GNU Global" .
161 .El
162 .Pp
163 The other supported targets under directory
164 .Pa /usr/src
165 are:
166 .Bl -tag -width ".Cm distributeworld"
167 .It Cm buildenv
168 Spawn an interactive shell with environment variables set up for
169 cross-building the system.
170 The target architecture needs to be specified with
171 .Xr make 1
172 variables
173 .Va TARGET_ARCH
174 and
175 .Va TARGET .
176 .Pp
177 This target is only useful after a complete cross-toolchain including
178 the compiler, linker, assembler, headers and libraries has been
179 built; see the
180 .Cm toolchain
181 target below.
182 .It Cm buildworld
183 Build everything but the kernel, configure files in
184 .Pa etc ,
185 and
186 .Pa release .
187 The object directory can be changed from the default
188 .Pa /usr/obj
189 by setting the
190 .Pa MAKEOBJDIRPREFIX
191 .Xr make 1
192 variable.
193 The actual build location prefix used
194 depends on the
195 .Va WITH_UNIFIED_OBJDIR
196 option from
197 .Xr src.conf 5 .
198 If enabled it is
199 .Pa ${MAKEOBJDIRPREFIX}${.CURDIR}/${TARGET}.${TARGET_ARCH}
200 for all builds.
201 If disabled it is
202 .Pa ${MAKEOBJDIRPREFIX}${.CURDIR}
203 for native builds, and
204 .Pa ${MAKEOBJDIRPREFIX}/${TARGET}.${TARGET_ARCH}${.CURDIR}
205 for cross builds and native builds with variable
206 .Va CROSS_BUILD_TESTING
207 set.
208 .It Cm cleanworld
209 Attempt to clean up targets built by a preceding
210 .Cm buildworld ,
211 or similar step built from this source directory.
212 .It Cm cleanuniverse
213 When
214 .Va WITH_UNIFIED_OBJDIR
215 is enabled, attempt to clean up targets built by a preceding
216 .Cm buildworld ,
217 .Cm universe ,
218 or similar step, for any architecture built from this source directory.
219 .It Cm distributeworld
220 Distribute everything compiled by a preceding
221 .Cm buildworld
222 step.
223 Files are placed in the directory hierarchy specified by
224 .Xr make 1
225 variable
226 .Va DISTDIR .
227 This target is used while building a release; see
228 .Xr release 7 .
229 .It Cm native-xtools
230 This target builds a cross-toolchain for the given
231 .Sy TARGET
232 and
233 .Sy TARGET_ARCH ,
234 as well as a select list of static userland tools for the host system.
235 This is intended to be used in a jail where QEMU is used to improve
236 performance by avoiding emulating binaries that do not need to be emulated.
237 .Sy TARGET
238 and
239 .Sy TARGET_ARCH
240 should be defined.
241 .It Cm native-xtools-install
242 Installs the results to
243 .Pa ${DESTDIR}/${NXTP}
244 where
245 .Va NXTP
246 defaults to
247 .Pa nxb-bin .
248 .Sy TARGET
249 and
250 .Sy TARGET_ARCH
251 must be defined.
252 .It Cm packageworld
253 Archive the results of
254 .Cm distributeworld ,
255 placing the results in
256 .Va DISTDIR .
257 This target is used while building a release; see
258 .Xr release 7 .
259 .It Cm installworld
260 Install everything built by a preceding
261 .Cm buildworld
262 step into the directory hierarchy pointed to by
263 .Xr make 1
264 variable
265 .Va DESTDIR .
266 .Pp
267 If installing onto an NFS file system and running
268 .Xr make 1
269 with the
270 .Fl j
271 option, make sure that
272 .Xr rpc.lockd 8
273 is running on both client and server.
274 See
275 .Xr rc.conf 5
276 on how to make it start at boot time.
277 .It Cm toolchain
278 Create the build toolchain needed to build the rest of the system.
279 For cross-architecture builds, this step creates a cross-toolchain.
280 .It Cm universe
281 For each architecture,
282 execute a
283 .Cm buildworld
284 followed by a
285 .Cm buildkernel
286 for all kernels for that architecture,
287 including
288 .Pa LINT .
289 This command takes a long time.
290 .It Cm update
291 Get updated sources as configured in
292 .Xr make.conf 5 .
293 .It Cm targets
294 Print a list of supported
295 .Va TARGET
296 /
297 .Va TARGET_ARCH
298 pairs for world and kernel targets.
299 .It Cm tinderbox
300 Execute the same targets as
301 .Cm universe .
302 In addition print a summary of all failed targets at the end and
303 exit with an error if there were any.
304 .It Cm toolchains
305 Create a build toolchain for each architecture supported by the build system.
306 .It Cm xdev
307 Builds and installs a cross-toolchain and sysroot for the given
308 .Sy TARGET
309 and
310 .Sy TARGET_ARCH .
311 The sysroot contains target library and headers.
312 The target is an alias for
313 .Cm xdev-build
314 and
315 .Cm xdev-install .
316 The location of the files installed can be controlled with
317 .Va DESTDIR .
318 The target location in
319 .Va DESTDIR
320 is
321 .Pa ${DESTDIR}/${XDTP}
322 where
323 .Va XDTP
324 defaults to
325 .Pa /usr/${XDDIR}
326 and
327 .Va XDDIR
328 defaults to
329 .Pa ${TARGET_ARCH}-freebsd .
330 .It Cm xdev-build
331 Builds for the
332 .Cm xdev
333 target.
334 .It Cm xdev-install
335 Installs the files for the
336 .Cm xdev
337 target.
338 .It Cm xdev-links
339 Installs autoconf-style symlinks to
340 .Pa ${DESTDIR}/usr/bin
341 pointing into the xdev toolchain in
342 .Pa ${DESTDIR}/${XDTP} .
343 .El
344 .Pp
345 Kernel specific build targets in
346 .Pa /usr/src
347 are:
348 .Bl -tag -width ".Cm distributekernel"
349 .It Cm buildkernel
350 Rebuild the kernel and the kernel modules.
351 The object directory can be changed from the default
352 .Pa /usr/obj
353 by setting the
354 .Pa MAKEOBJDIRPREFIX
355 .Xr make 1
356 variable.
357 .It Cm installkernel
358 Install the kernel and the kernel modules to directory
359 .Pa ${DESTDIR}/boot/kernel ,
360 renaming any pre-existing directory with this name to
361 .Pa kernel.old
362 if it contained the currently running kernel.
363 The target directory under
364 .Pa ${DESTDIR}
365 may be modified using the
366 .Va INSTKERNNAME
367 and
368 .Va KODIR
369 .Xr make 1
370 variables.
371 .It Cm distributekernel
372 Install the kernel to the directory
373 .Pa ${DISTDIR}/kernel/boot/kernel .
374 This target is used while building a release; see
375 .Xr release 7 .
376 .It Cm packagekernel
377 Archive the results of
378 .Cm distributekernel ,
379 placing the results in
380 .Va DISTDIR .
381 This target is used while building a release; see
382 .Xr release 7 .
383 .It Cm kernel
384 Equivalent to
385 .Cm buildkernel
386 followed by
387 .Cm installkernel
388 .It Cm kernel-toolchain
389 Rebuild the tools needed for kernel compilation.
390 Use this if you did not do a
391 .Cm buildworld
392 first.
393 .It Cm reinstallkernel
394 Reinstall the kernel and the kernel modules, overwriting the contents
395 of the target directory.
396 As with the
397 .Cm installkernel
398 target, the target directory can be specified using the
399 .Xr make 1
400 variable
401 .Va INSTKERNNAME .
402 .El
403 .Pp
404 Convenience targets for cleaning up the install destination directory
405 denoted by variable
406 .Va DESTDIR
407 include:
408 .Bl -tag -width ".Cm delete-old-libs"
409 .It Cm check-old
410 Print a list of old files and directories in the system.
411 .It Cm delete-old
412 Delete obsolete base system files and directories interactively.
413 When
414 .Li -DBATCH_DELETE_OLD_FILES
415 is specified at the command line, the delete operation will be
416 non-interactive.
417 The variables
418 .Va DESTDIR ,
419 .Va TARGET_ARCH
420 and
421 .Va TARGET
422 should be set as with
423 .Dq Li "make installworld" .
424 .It Cm delete-old-libs
425 Delete obsolete base system libraries interactively.
426 This target should only be used if no third party software uses these
427 libraries.
428 When
429 .Li -DBATCH_DELETE_OLD_FILES
430 is specified at the command line, the delete operation will be
431 non-interactive.
432 The variables
433 .Va DESTDIR ,
434 .Va TARGET_ARCH
435 and
436 .Va TARGET
437 should be set as with
438 .Dq Li "make installworld" .
439 .El
440 .Sh ENVIRONMENT
441 Variables that influence all builds include:
442 .Bl -tag -width ".Va MAKEOBJDIRPREFIX"
443 .It Va DEBUG_FLAGS
444 Defines a set of debugging flags that will be used to build all userland
445 binaries under
446 .Pa /usr/src .
447 When
448 .Va DEBUG_FLAGS
449 is defined, the
450 .Cm install
451 and
452 .Cm installworld
453 targets install binaries from the current
454 .Va MAKEOBJDIRPREFIX
455 without stripping,
456 so that debugging information is retained in the installed binaries.
457 .It Va DESTDIR
458 The directory hierarchy prefix where built objects will be installed.
459 If not set,
460 .Va DESTDIR
461 defaults to the empty string.
462 .It Va MAKEOBJDIRPREFIX
463 Defines the prefix for directory names in the tree of built objects.
464 Defaults to
465 .Pa /usr/obj
466 if not defined.
467 This variable should only be set in the environment or
468 .Pa /etc/src-env.conf
469 and not via
470 .Pa /etc/make.conf
471 or
472 .Pa /etc/src.conf
473 or the command line.
474 .It Va NO_WERROR
475 If defined, compiler warnings will not cause the build to halt,
476 even if the makefile says otherwise.
477 .It Va WITH_CTF
478 If defined, the build process will run the DTrace CTF conversion
479 tools on built objects.
480 .El
481 .Pp
482 Additionally, builds in
483 .Pa /usr/src
484 are influenced by the following
485 .Xr make 1
486 variables:
487 .Bl -tag -width ".Va SUBDIR_OVERRIDE"
488 .It Va KERNCONF
489 Overrides which kernel to build and install for the various kernel
490 make targets.
491 It defaults to
492 .Cm GENERIC .
493 .It Va KERNFAST
494 If set, the build target
495 .Cm buildkernel
496 defaults to setting
497 .Va NO_KERNELCLEAN ,
498 .Va NO_KERNELCONFIG ,
499 and
500 .Va NO_KERNELOBJ .
501 When set to a value other than
502 .Cm 1
503 then
504 .Va KERNCONF
505 is set to the value of
506 .Va KERNFAST .
507 .It Va LOCAL_DIRS
508 If set, this variable supplies a list of additional directories relative to
509 the root of the source tree to build as part of the
510 .Cm everything
511 target.
512 The directories are built in parallel with each other,
513 and with the base system directories.
514 Insert a
515 .Va .WAIT
516 directive at the beginning of the
517 .Va LOCAL_DIRS
518 list to ensure all base system directories are built first.
519 .Va .WAIT
520 may also be used as needed elsewhere within the list.
521 .It Va LOCAL_ITOOLS
522 If set, this variable supplies a list of additional tools that are used by the
523 .Cm installworld
524 and
525 .Cm distributeworld
526 targets.
527 .It Va LOCAL_LIB_DIRS
528 If set, this variable supplies a list of additional directories relative to
529 the root of the source tree to build as part of the
530 .Cm libraries
531 target.
532 The directories are built in parallel with each other,
533 and with the base system libraries.
534 Insert a
535 .Va .WAIT
536 directive at the beginning of the
537 .Va LOCAL_DIRS
538 list to ensure all base system libraries are built first.
539 .Va .WAIT
540 may also be used as needed elsewhere within the list.
541 .It Va LOCAL_MTREE
542 If set, this variable supplies a list of additional mtrees relative to the
543 root of the source tree to use as part of the
544 .Cm hierarchy
545 target.
546 .It Va LOCAL_TOOL_DIRS
547 If set, this variable supplies a list of additional directories relative to
548 the root of the source tree to build as part of the
549 .Cm build-tools
550 target.
551 .It Va LOCAL_XTOOL_DIRS
552 If set, this variable supplies a list of additional directories relative to
553 the root of the source tree to build as part of the
554 .Cm cross-tools
555 target.
556 .It Va PORTS_MODULES
557 A list of ports with kernel modules that should be built and installed
558 as part of the
559 .Cm buildkernel
560 and
561 .Cm installkernel
562 process.
563 .Bd -literal -offset indent
564 make PORTS_MODULES=emulators/kqemu-kmod kernel
565 .Ed
566 .It Va STRIPBIN
567 Command to use at install time when stripping binaries.
568 Be sure to add any additional tools required to run
569 .Va STRIPBIN
570 to the
571 .Va LOCAL_ITOOLS
572 .Xr make 1
573 variable before running the
574 .Cm distributeworld
575 or
576 .Cm installworld
577 targets.
578 See
579 .Xr install 1
580 for more details.
581 .It Va SUBDIR_OVERRIDE
582 Override the default list of sub-directories and only build the
583 sub-directory named in this variable.
584 If combined with
585 .Cm buildworld
586 then all libraries and includes, and some of the build tools will still build
587 as well.
588 Specifying
589 .Cm -DNO_LIBS ,
590 and
591 .Cm -DWORLDFAST
592 will only build the specified directory as was done historically.
593 When combined with
594 .Cm buildworld
595 it is necesarry to override
596 .Va LOCAL_LIB_DIRS
597 with any custom directories containing libraries.
598 This allows building a subset of the system in the same way as
599 .Cm buildworld
600 does using its sysroot handling.
601 This variable can also be useful when debugging failed builds.
602 .Bd -literal -offset indent
603 make some-target SUBDIR_OVERRIDE=foo/bar
604 .Ed
605 .It Va TARGET
606 The target hardware platform.
607 This is analogous to the
608 .Dq Nm uname Fl m
609 output.
610 This is necessary to cross-build some target architectures.
611 For example, cross-building for ARM64 machines requires
612 .Va TARGET_ARCH Ns = Ns Li aarch64
613 and
614 .Va TARGET Ns = Ns Li arm64 .
615 If not set,
616 .Va TARGET
617 defaults to the current hardware platform, unless
618 .Va TARGET_ARCH
619 is also set, in which case it defaults to the appropriate
620 value for that architecture.
621 .It Va TARGET_ARCH
622 The target machine processor architecture.
623 This is analogous to the
624 .Dq Nm uname Fl p
625 output.
626 Set this to cross-build for a different architecture.
627 If not set,
628 .Va TARGET_ARCH
629 defaults to the current machine architecture, unless
630 .Va TARGET
631 is also set, in which case it defaults to the appropriate
632 value for that platform.
633 Typically, one only needs to set
634 .Va TARGET .
635 .El
636 .Pp
637 Builds under directory
638 .Pa /usr/src
639 are also influenced by defining one or more of the following symbols,
640 using the
641 .Fl D
642 option of
643 .Xr make 1 :
644 .Bl -tag -width ".Va -DNO_KERNELCONFIG"
645 .It Va NO_CLEANDIR
646 If set, the build targets that clean parts of the object tree use the
647 equivalent of
648 .Dq make clean
649 instead of
650 .Dq make cleandir .
651 .It Va NO_CLEAN
652 If set, no object tree files are cleaned at all.
653 This is the default when
654 .Va WITH_META_MODE
655 is used with
656 .Xr filemon 4
657 loaded.
658 See
659 .Xr src.conf 5
660 for more details.
661 Setting
662 .Va NO_CLEAN
663 implies
664 .Va NO_KERNELCLEAN ,
665 so when
666 .Va NO_CLEAN
667 is set no kernel objects are cleaned either.
668 .It Va NO_CTF
669 If set, the build process does not run the DTrace CTF conversion tools
670 on built objects.
671 .It Va NO_SHARE
672 If set, the build does not descend into the
673 .Pa /usr/src/share
674 subdirectory (i.e., manual pages, locale data files, timezone data files and
675 other
676 .Pa /usr/src/share
677 files will not be rebuild from their sources).
678 .It Va NO_KERNELCLEAN
679 If set, the build process does not run
680 .Dq make clean
681 as part of the
682 .Cm buildkernel
683 target.
684 .It Va NO_KERNELCONFIG
685 If set, the build process does not run
686 .Xr config 8
687 as part of the
688 .Cm buildkernel
689 target.
690 .It Va NO_KERNELOBJ
691 If set, the build process does not run
692 .Dq make obj
693 as part of the
694 .Cm buildkernel
695 target.
696 .It Va NO_DOCUPDATE
697 If set, the update process does not update the source of the
698 .Fx
699 documentation as part of the
700 .Dq make update
701 target.
702 .It Va NO_LIBS
703 If set, the libraries phase will be skipped.
704 .It Va NO_OBJWALK
705 If set, no object directories will be created.
706 This should only be used if object directories were created in a
707 previous build and no new directories are connected.
708 .It Va NO_PORTSUPDATE
709 If set, the update process does not update the Ports tree as part of the
710 .Dq make update
711 target.
712 .It Va NO_WWWUPDATE
713 If set, the update process does not update the www tree as part of the
714 .Dq make update
715 target.
716 .It Va WORLDFAST
717 If set, the build target
718 .Cm buildworld
719 defaults to setting
720 .Va NO_CLEAN ,
721 .Va NO_OBJWALK ,
722 and will skip most bootstrap phases.
723 It will only bootstrap libraries and build all of userland.
724 This option should be used only when it is known that none of the bootstrap
725 needs changed and that no new directories have been connected to the build.
726 .El
727 .Pp
728 Builds under directory
729 .Pa /usr/doc
730 are influenced by the following
731 .Xr make 1
732 variables:
733 .Bl -tag -width ".Va DOC_LANG"
734 .It Va DOC_LANG
735 If set, restricts the documentation build to the language subdirectories
736 specified as its content.
737 The default action is to build documentation for all languages.
738 .El
739 .Pp
740 Builds using the
741 .Cm universe
742 target are influenced by the following
743 .Xr make 1
744 variables:
745 .Bl -tag -width ".Va MAKE_JUST_KERNELS"
746 .It Va JFLAG
747 Pass the value of this variable to each
748 .Xr make 1
749 invocation used to build worlds and kernels.
750 This can be used to enable multiple jobs within a single architecture's build
751 while still building each architecture serially.
752 .It Va MAKE_JUST_KERNELS
753 Only build kernels for each supported architecture.
754 .It Va MAKE_JUST_WORLDS
755 Only build worlds for each supported architecture.
756 .It Va UNIVERSE_TARGET
757 Execute the specified
758 .Xr make 1
759 target for each supported architecture instead of the default action of
760 building a world and one or more kernels.
761 .El
762 .Sh FILES
763 .Bl -tag -width ".Pa /usr/share/examples/etc/make.conf" -compact
764 .It Pa /usr/doc/Makefile
765 .It Pa /usr/doc/share/mk/doc.project.mk
766 .It Pa /usr/ports/Mk/bsd.port.mk
767 .It Pa /usr/ports/Mk/bsd.sites.mk
768 .It Pa /usr/share/examples/etc/make.conf
769 .It Pa /usr/src/Makefile
770 .It Pa /usr/src/Makefile.inc1
771 .El
772 .Sh EXAMPLES
773 For an
774 .Dq approved
775 method of updating your system from the latest sources, please see the
776 .Sx COMMON ITEMS
777 section in
778 .Pa src/UPDATING .
779 .Pp
780 The following sequence of commands can be used to cross-build the
781 system for the armv6 architecture on an amd64 host:
782 .Bd -literal -offset indent
783 cd /usr/src
784 make TARGET_ARCH=armv6 buildworld buildkernel
785 make TARGET_ARCH=armv6 DESTDIR=/clients/arm64 installworld installkernel
786 .Ed
787 .Sh SEE ALSO
788 .Xr cc 1 ,
789 .Xr install 1 ,
790 .Xr make 1 ,
791 .Xr svn 1 ,
792 .Xr make.conf 5 ,
793 .Xr src.conf 5 ,
794 .Xr arch 7 ,
795 .Xr ports 7 ,
796 .Xr release 7 ,
797 .Xr tests 7 ,
798 .Xr config 8 ,
799 .Xr mergemaster 8 ,
800 .Xr portsnap 8 ,
801 .Xr reboot 8 ,
802 .Xr shutdown 8
803 .Sh AUTHORS
804 .An Mike W. Meyer Aq Mt mwm@mired.org