'\"macro stdmacro
.if n .pH g1a.ypmake @(#)ypmake	40.3 of 1/29/90
.\" Copyright 1989 AT&T
.\" @(#)ypmake.8 1.7 89/09/28 SMI;
.\" Copyright (c) 1988 Sun Microsystems, Inc. - All Rights Reserved.
.nr X
.if \nX=0 .ds x} ypmake 1M "" "\&"
.if \nX=1 .ds x} ypmake 1M ""
.if \nX=2 .ds x} ypmake 1M "" "\&"
.if \nX=3 .ds x} ypmake "" "" "\&"
.TH \*(x}
.SH NAME
\f4ypmake\fP \- rebuild YP database
.SH SYNOPSIS
\f4cd /var/yp ; make\fR
[
\f2map\fR
]
.SH DESCRIPTION
.P
The file called
\f4Makefile\fR
in
\f4/var/yp\fR
is used by
\f4make\fR
to build the YP name service database.
With no arguments,
\f4make\fR
creates
\f4dbm\fR
databases for any
\s-1YP\s0
maps that are out-of-date,
and then executes
\f4yppush\fR(1M)
to notify slave databases that there has been a change.
.P
If 
\f2map\fR
is supplied on the command line,
\f4make\fR
will update that map only.
.P
There are three special variables used by
\f4make\fR:
\s-1DIR\s0,
which gives the directory of the source files;
\s-1NOPUSH\s0,
which when non-null inhibits doing a
\f4yppush\fR
of the new database files;
and
\s-1DOM\s0,
used to construct a domain
other than the master's default domain.
The default for
\s-1DIR\s0
is
\f4/etc\fR,
and the default for
\s-1NOPUSH\s0
is the null string.
.P
\f4ypmake\fR
also creates an entry in
\f4/var/yp/aliases\fR.
.P
Refer to
\f4ypfiles\fR(4)
and
\f4ypserv\fR(1M)
for an overview of the 
\s-1YP\s0.
.SH FILES
.PD 0
.TP 20
\f4/var/yp\fR
.PD
.SH "SEE ALSO"
\f4make\fR(1),
\f4makedbm\fR(1M),
\f4yppush\fR(1M),
\f4ypserv\fR(1M),
\f4ypfiles\fR(4)
