diff options
author | bde <bde@FreeBSD.org> | 1996-08-31 14:21:15 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 1996-08-31 14:21:15 +0000 |
commit | 24874ef73232f94225a152beb54feb825cb4f47c (patch) | |
tree | 14951599a23e9d324b07985f83d1c8eda5b23761 | |
parent | acff8966e1309c0a8cea97b6e10976b3cc6d07e1 (diff) | |
download | FreeBSD-src-24874ef73232f94225a152beb54feb825cb4f47c.zip FreeBSD-src-24874ef73232f94225a152beb54feb825cb4f47c.tar.gz |
Listed all the environment variables (MACHINE and PWD were missing).
Documented PWD. MACHINE and MAKEOBJDIR are are still undocumented
except in main.c. I will be changing MAKEOBJDIR back to its old
behaviour so that the comment in main.c actually applies.
Removed irrelevant misformatted text about make's name being argv[0].
-rw-r--r-- | usr.bin/make/make.1 | 31 |
1 files changed, 27 insertions, 4 deletions
diff --git a/usr.bin/make/make.1 b/usr.bin/make/make.1 index 69b3598..49971b0 100644 --- a/usr.bin/make/make.1 +++ b/usr.bin/make/make.1 @@ -388,8 +388,7 @@ sign. .It Ev MAKE The name that .Nm make -was executed with -.Pq Va argv Op 0 +was executed with. .It Va .CURDIR A path to the directory where .Nm make @@ -411,6 +410,28 @@ variable which is then entered into the environment for all programs which .Nm make executes. +.It Ev PWD +Alternate path to the current directory. +.Nm make +normally sets +.Ql Va .CURDIR +to the canonical path given by +.Xr getcwd 2 . +However, if the environment variable +.Ql Ev PWD +is set and gives a path to the current directory, then +.Nm make +sets +.Ql Va .CURDIR +to the value of +.Ql Ev PWD +instead. +.Ql Ev PWD +is set to the value of +.Ql Va .OBJDIR +for all programs which +.Nm make +executes. .El .Pp Variable expansion may be modified to select or modify each word of the @@ -869,10 +890,12 @@ If no sources are specified, any previous specified suffices are deleted. .Sh ENVIRONMENT .Nm Make utilizes the following environment variables, if they exist: +.Ev MACHINE , .Ev MAKE , -.Ev MAKEFLAGS +.Ev MAKEFLAGS , +.Ev MAKEOBJDIR , and -.Ev MAKEOBJDIR . +.Ev PWD . .Sh FILES .Bl -tag -width /usr/share/mk -compact .It .depend |