Described the search path Make uses to find makefiles.
This commit is contained in:
parent
0ed77db893
commit
95cf97aa04
@ -30,7 +30,7 @@
|
||||
.\" SUCH DAMAGE.
|
||||
.\"
|
||||
.\" from: @(#)make.1 8.4 (Berkeley) 3/19/94
|
||||
.\" $Id: make.1,v 1.14 1998/11/14 16:15:04 dg Exp $
|
||||
.\" $Id: make.1,v 1.15 1998/11/15 05:51:55 bde Exp $
|
||||
.\"
|
||||
.Dd March 19, 1994
|
||||
.Dt MAKE 1
|
||||
@ -57,15 +57,17 @@
|
||||
is a program designed to simplify the maintenance of other programs.
|
||||
Its input is a list of specifications as to the files upon which programs
|
||||
and other files depend.
|
||||
.Nm Make
|
||||
searches a built-in path for this list.
|
||||
If the file
|
||||
.Ql Pa makefile
|
||||
exists, it is read for this list of specifications.
|
||||
exists along this path, it is read for this list of specifications.
|
||||
If it does not exist, the file
|
||||
.Ql Pa Makefile
|
||||
is read.
|
||||
is used.
|
||||
If the file
|
||||
.Ql Pa .depend
|
||||
exists, it is read (see
|
||||
exists, it is also read (see
|
||||
.Xr mkdep 1) .
|
||||
.Pp
|
||||
This manual page is intended as a reference document only.
|
||||
@ -938,6 +940,33 @@ command in the file.
|
||||
Each source specifies a suffix to
|
||||
.Nm make .
|
||||
If no sources are specified, any previous specified suffices are deleted.
|
||||
.Sh SEARCH PATH
|
||||
.Nm Make
|
||||
searches for
|
||||
.Ql Pa Makefile
|
||||
in the following directories, in order:
|
||||
.Pp
|
||||
.Bl -enum -compact
|
||||
.It
|
||||
${MAKEOBJDIRPREFIX}`cwd`
|
||||
.It
|
||||
${MAKEOBJDIR}
|
||||
.It
|
||||
obj.${MACHINE}
|
||||
.It
|
||||
obj
|
||||
.It
|
||||
/usr/obj${MACHINE}`cwd`
|
||||
.It
|
||||
The current directory (`cwd`).
|
||||
.El
|
||||
.Pp
|
||||
If
|
||||
.Nm make
|
||||
finds the
|
||||
.Ql Pa Makefile
|
||||
someplace other than the current working directory, it adds the CWD to
|
||||
the search path.
|
||||
.Sh ENVIRONMENT
|
||||
.Nm Make
|
||||
utilizes the following environment variables, if they exist:
|
||||
@ -956,12 +985,16 @@ list of dependencies
|
||||
list of dependencies
|
||||
.It makefile
|
||||
list of dependencies
|
||||
.It obj
|
||||
object directory
|
||||
.It sys.mk
|
||||
system makefile
|
||||
.It /usr/share/mk
|
||||
system makefile directory
|
||||
.It /usr/share/doc/psd/12.make
|
||||
PMake tutorial
|
||||
.It /usr/obj
|
||||
system object directory prefix
|
||||
.El
|
||||
.Sh SEE ALSO
|
||||
.Xr mkdep 1
|
||||
|
Loading…
x
Reference in New Issue
Block a user