cvs commit: ports/java/jdk14 Makefile
Ruslan Ermilov
ru at freebsd.org
Wed Aug 18 02:04:30 PDT 2004
On Wed, Aug 18, 2004 at 10:25:32AM +0200, Harti Brandt wrote:
> On Wed, 18 Aug 2004, Ruslan Ermilov wrote:
[...]
> RE>2. Makefile can modify this global as necessary, either by
> RE>modifying the variable directly (including adding to it,
> RE>overriding it, or even undefining it with .undef), or thru
> RE>the special .MAKEFLAGS macro.
> ^^^^^ target (see commented out line in Makefile
> below)
>
Also, "submakes" here and there should actually read "all programs
that make executes".
[...]
> This is an excellent explanation. Perhaps we can put part of it into
> make(1)?
>
You mean documenting the difference between .MAKEFLAGS macro
and .MAKEFLAGS target?
%%%
Index: make.1
===================================================================
RCS file: /home/ncvs/src/usr.bin/make/make.1,v
retrieving revision 1.78
diff -u -r1.78 make.1
--- make.1 9 Aug 2004 16:13:54 -0000 1.78
+++ make.1 18 Aug 2004 09:02:15 -0000
@@ -581,6 +581,15 @@
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 @@
.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!!!!
%%%
Cheers,
--
Ruslan Ermilov
ru at FreeBSD.org
FreeBSD committer
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/cvs-all/attachments/20040818/2714a19a/attachment.bin
More information about the cvs-all
mailing list