summaryrefslogtreecommitdiffstats
path: root/usr.bin/make
diff options
context:
space:
mode:
authorpds <pds@FreeBSD.org>1998-11-29 13:46:39 +0000
committerpds <pds@FreeBSD.org>1998-11-29 13:46:39 +0000
commite5a067a5c5854cda7ba7f0c3c62f46b603437567 (patch)
tree6382aa64a82bd7c9424885c5038340a471d4ad5d /usr.bin/make
parenta2504ac4b611180e320dcda02b2b5ecf426d8523 (diff)
downloadFreeBSD-src-e5a067a5c5854cda7ba7f0c3c62f46b603437567.zip
FreeBSD-src-e5a067a5c5854cda7ba7f0c3c62f46b603437567.tar.gz
Described the search path Make uses to find makefiles.
Diffstat (limited to 'usr.bin/make')
-rw-r--r--usr.bin/make/make.141
1 files changed, 37 insertions, 4 deletions
diff --git a/usr.bin/make/make.1 b/usr.bin/make/make.1
index c85ca51..e4f86fb 100644
--- a/usr.bin/make/make.1
+++ b/usr.bin/make/make.1
@@ -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
OpenPOWER on IntegriCloud