summaryrefslogtreecommitdiffstats
path: root/usr.bin/make
diff options
context:
space:
mode:
authorru <ru@FreeBSD.org>2004-08-18 13:25:46 +0000
committerru <ru@FreeBSD.org>2004-08-18 13:25:46 +0000
commit3e22f2ff0938c40c8fc25b862c42e5eb117683bc (patch)
treef2caecc67fde949c99810f12985b1f75f8f04c4f /usr.bin/make
parent115cded1038aaa6c7c3d45e9a12cfd194c04c6ae (diff)
downloadFreeBSD-src-3e22f2ff0938c40c8fc25b862c42e5eb117683bc.zip
FreeBSD-src-3e22f2ff0938c40c8fc25b862c42e5eb117683bc.tar.gz
Document the effects of modifying the .MAKEFLAGS internal
variable and using the .MAKEFLAGS special target, and the differences between them. Reviewed by: harti
Diffstat (limited to 'usr.bin/make')
-rw-r--r--usr.bin/make/make.125
1 files changed, 24 insertions, 1 deletions
diff --git a/usr.bin/make/make.1 b/usr.bin/make/make.1
index 05b76ef..753e119 100644
--- a/usr.bin/make/make.1
+++ b/usr.bin/make/make.1
@@ -32,7 +32,7 @@
.\" @(#)make.1 8.8 (Berkeley) 6/13/95
.\" $FreeBSD$
.\"
-.Dd August 4, 2004
+.Dd August 18, 2004
.Dt MAKE 1
.Os
.Sh NAME
@@ -581,6 +581,15 @@ entered into the environment as
for all programs which
.Nm
executes.
+By modifying the contents of the
+.Va .MAKEFLAGS
+variable, makefile can alter the contents of the
+.Va MAKEFLAGS
+environment variable made available for all programs which
+.Nm
+executes; compare with the
+.Ic .MAKEFLAGS
+special target below.
.It Va MFLAGS
is provided for backward compatibility and
contains all the options from the
@@ -1146,6 +1155,20 @@ The flags are as if typed to the shell, though the
.Fl f
option will have
no effect.
+Flags (except for
+.Fl f )
+and variable assignments specified as the source
+for this target are also appended to the
+.Va .MAKEFLAGS
+internal variable.
+Please note the difference between this target and the
+.Va .MAKEFLAGS
+internal variable: specifying an option or variable
+assignment as the source for this target will affect
+.Em both
+the current makefile and all processes that
+.Nm
+executes.
.It Ic .MFLAGS
Same as above, for backward compatibility.
.\" XXX: NOT YET!!!!
OpenPOWER on IntegriCloud