Date: Wed, 18 Aug 2004 14:37:19 +0200 (CEST) From: Harti Brandt <harti@freebsd.org> To: Ruslan Ermilov <ru@freebsd.org> Cc: ports-committers@freebsd.org Subject: Re: cvs commit: ports/java/jdk14 Makefile Message-ID: <20040818143652.E872@beagle.kn.op.dlr.de> In-Reply-To: <20040818090418.GA91463@ip.net.ua> References: <200408180706.i7I763ps032344@repoman.freebsd.org> <20040818081702.GB91053@ip.net.ua> <20040818102107.S872@beagle.kn.op.dlr.de> <20040818090418.GA91463@ip.net.ua>
next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, 18 Aug 2004, Ruslan Ermilov wrote: RE>On Wed, Aug 18, 2004 at 10:25:32AM +0200, Harti Brandt wrote: RE>> On Wed, 18 Aug 2004, Ruslan Ermilov wrote: RE>[...] RE>> RE>2. Makefile can modify this global as necessary, either by RE>> RE>modifying the variable directly (including adding to it, RE>> RE>overriding it, or even undefining it with .undef), or thru RE>> RE>the special .MAKEFLAGS macro. RE>> ^^^^^ target (see commented out line in Makefile RE>> below) RE>> RE>Also, "submakes" here and there should actually read "all programs RE>that make executes". RE> RE>[...] RE> RE>> This is an excellent explanation. Perhaps we can put part of it into RE>> make(1)? RE>> RE>You mean documenting the difference between .MAKEFLAGS macro RE>and .MAKEFLAGS target? RE> RE>%%% RE>Index: make.1 RE>=================================================================== RE>RCS file: /home/ncvs/src/usr.bin/make/make.1,v RE>retrieving revision 1.78 RE>diff -u -r1.78 make.1 RE>--- make.1 9 Aug 2004 16:13:54 -0000 1.78 RE>+++ make.1 18 Aug 2004 09:02:15 -0000 RE>@@ -581,6 +581,15 @@ RE> for all programs which RE> .Nm RE> executes. RE>+By modifying the contents of the RE>+.Va .MAKEFLAGS RE>+variable, makefile can alter the contents of the RE>+.Va MAKEFLAGS RE>+environment variable made available for all programs which RE>+.Nm RE>+executes; compare with the RE>+.Ic .MAKEFLAGS RE>+special target below. RE> .It Va MFLAGS RE> is provided for backward compatibility and RE> contains all the options from the RE>@@ -1146,6 +1155,20 @@ RE> .Fl f RE> option will have RE> no effect. RE>+Flags (except for RE>+.Fl f ) RE>+and variable assignments specified as the source RE>+for this target are also appended to the RE>+.Va .MAKEFLAGS RE>+internal variable. RE>+Please note the difference between this target and the RE>+.Va .MAKEFLAGS RE>+internal variable: specifying an option or variable RE>+assignment as the source for this target will affect RE>+.Em both RE>+the current makefile and all processes that RE>+.Nm RE>+executes. RE> .It Ic .MFLAGS RE> Same as above, for backward compatibility. RE> .\" XXX: NOT YET!!!! RE>%%% Sounds fine. harti
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040818143652.E872>