version 1.89, 2012/05/25 10:47:25 |
version 1.89.2.1, 2012/11/20 02:57:55 |
|
|
.\" Toolchain prefix for commands |
.\" Toolchain prefix for commands |
.ds toolprefix nb |
.ds toolprefix nb |
. |
. |
.Dd May 25, 2012 |
.Dd September 19, 2012 |
.Dt BUILDING 8 |
.Dt BUILDING 8 |
.Os NetBSD |
.Os NetBSD |
. |
. |
Line 287 can be provided only in the environment |
|
Line 287 can be provided only in the environment |
|
.Fl M |
.Fl M |
flag of |
flag of |
.Nm build.sh ; |
.Nm build.sh ; |
it cannot usefully be set inside a Makefile, including |
it cannot usefully be set inside a Makefile, including |
.Pa mk.conf |
.Pa mk.conf |
or |
or |
.Sy ${MAKECONF} . |
.Sy ${MAKECONF} . |
|
|
.YorN |
.YorN |
Indicates whether preformatted plaintext manual pages will be created |
Indicates whether preformatted plaintext manual pages will be created |
during a build. |
during a build. |
.DFLTy |
.DFLTn |
. |
. |
.It Sy MKCRYPTO |
.It Sy MKCRYPTO |
.YorN |
.YorN |
Line 580 unconditionally. |
|
Line 580 unconditionally. |
|
. |
. |
.It Sy MKSTRIPIDENT |
.It Sy MKSTRIPIDENT |
.YorN |
.YorN |
Indicates whether program binaries and shared libraries should be built |
Indicates whether RCS IDs, for use with |
to include RCS IDs for use with |
.Xr ident 1 , |
.Xr ident 1 . |
should be stripped from program binaries and shared libraries. |
.DFLTn |
.DFLTn |
. |
. |
.It Sy MKUNPRIVED |
.It Sy MKUNPRIVED |
Line 744 If set, then in addition to the effects |
|
Line 744 If set, then in addition to the effects |
|
.Sy MKUPDATE=yes |
.Sy MKUPDATE=yes |
above, this implies the effects of |
above, this implies the effects of |
.Sy NOCLEANDIR |
.Sy NOCLEANDIR |
(i.e., |
(i.e., |
.Dq make cleandir |
.Dq make cleandir |
is avoided). |
is avoided). |
.DFLTn |
.DFLTn |
|
|
. |
. |
.It Sy NBUILDJOBS |
.It Sy NBUILDJOBS |
Now obsolete. |
Now obsolete. |
Use the |
Use the |
.Xr make 1 |
.Xr make 1 |
option |
option |
.Fl j , |
.Fl j , |
Line 838 builds are listed here. |
|
Line 838 builds are listed here. |
|
.It Fl j Ar njob |
.It Fl j Ar njob |
Run up to |
Run up to |
.Ar njob |
.Ar njob |
.Xr make 1 |
.Xr make 1 |
subjobs in parallel. |
subjobs in parallel. |
Makefiles should use .WAIT or have explicit dependencies |
Makefiles should use .WAIT or have explicit dependencies |
as necessary to enforce build ordering. |
as necessary to enforce build ordering. |
. |
. |
.It Fl m Ar dir |
.It Fl m Ar dir |
Line 1030 After performing this operation, |
|
Line 1030 After performing this operation, |
|
it is recommended that you use |
it is recommended that you use |
.Xr etcupdate 8 |
.Xr etcupdate 8 |
to update files in |
to update files in |
.Sy INSTALLWORLDDIR Ns Pa /etc |
.Sy INSTALLWORLDDIR Ns Pa /etc , |
and that you use |
and |
.Xr postinstall 8 |
.Xr postinstall 8 |
to check for inconsistencies (and possibly to fix them). |
to check for or fix inconsistencies. |
.It Sy sets |
.It Sy sets |
Create distribution sets from |
Create distribution sets from |
.Sy DESTDIR |
.Sy DESTDIR |
Line 1192 must be populated by |
|
Line 1192 must be populated by |
|
.Dq make release |
.Dq make release |
or equivalent. |
or equivalent. |
The build must have been performed with |
The build must have been performed with |
.Sy MKUNPRIVED=yes |
.Sy MKUNPRIVED=yes |
because |
because |
.Dq make install-image |
.Dq make install-image |
relies on information in |
relies on information in |
Line 1225 is attempted, RELEASEDIR must be populat |
|
Line 1225 is attempted, RELEASEDIR must be populat |
|
.Dq make release |
.Dq make release |
or equivalent. |
or equivalent. |
The build must have been performed with |
The build must have been performed with |
.Sy MKUNPRIVED=yes |
.Sy MKUNPRIVED=yes |
because |
because |
.Dq make install-image |
.Dq make install-image |
relies on information in |
relies on information in |
Line 1367 This command will first run |
|
Line 1367 This command will first run |
|
.Dq make obj |
.Dq make obj |
and |
and |
.Dq make cleandir |
.Dq make cleandir |
in the |
in the |
.Pa tools |
.Pa tools |
subdirectory unless the |
subdirectory unless the |
.Fl o |
.Fl o |
Line 1501 wrapper script so that the resulting nam |
|
Line 1501 wrapper script so that the resulting nam |
|
. |
. |
.It Fl C Ar cdextras |
.It Fl C Ar cdextras |
Append |
Append |
.Ar cdextras |
.Ar cdextras |
to the |
to the |
.Sy CDEXTRA |
.Sy CDEXTRA |
variable, |
variable, |
Line 1549 Print a help message. |
|
Line 1549 Print a help message. |
|
.It Fl j Ar njob |
.It Fl j Ar njob |
Run up to |
Run up to |
.Ar njob |
.Ar njob |
.Xr make 1 |
.Xr make 1 |
subjobs in parallel; |
subjobs in parallel; |
passed through to |
passed through to |
.Xr make 1 . |
.Xr make 1 . |
If you see failures for reasons other than running out of memory |
If you see failures for reasons other than running out of memory |
while using |
while using |
.Sy build.sh |
.Sy build.sh |
with |
with |
.Fl j , |
.Fl j , |
please save complete build logs |
please save complete build logs |
so the failures can be analyzed. |
so the failures can be analyzed. |
.Pp |
.Pp |
To achieve the fastest builds, |
To achieve the fastest builds, |
Line 1772 Set the environment variable |
|
Line 1772 Set the environment variable |
|
.Ar var |
.Ar var |
to an optional |
to an optional |
.Ar value . |
.Ar value . |
This is propagated to the |
This is propagated to the |
.Sy \*[toolprefix]make |
.Sy \*[toolprefix]make |
wrapper. |
wrapper. |
. |
. |
|
|
.It Fl Z Ar var |
.It Fl Z Ar var |
Unset ("zap") the environment variable |
Unset ("zap") the environment variable |
.Ar var . |
.Ar var . |
This is propagated to the |
This is propagated to the |
.Sy \*[toolprefix]make |
.Sy \*[toolprefix]make |
wrapper. |
wrapper. |
. |
. |
Line 1904 portion of the release build. |
|
Line 1904 portion of the release build. |
|
.Bl -tag -width "NBUILDJOBS" |
.Bl -tag -width "NBUILDJOBS" |
. |
. |
.It Sy NBUILDJOBS |
.It Sy NBUILDJOBS |
Use the |
Use the |
.Xr make 1 |
.Xr make 1 |
option |
option |
.Fl j |
.Fl j |