Date: Wed, 18 Aug 2004 12:04:19 +0300 From: Ruslan Ermilov <ru@freebsd.org> To: Harti Brandt <harti@freebsd.org> Cc: ports-committers@freebsd.org Subject: Re: cvs commit: ports/java/jdk14 Makefile Message-ID: <20040818090418.GA91463@ip.net.ua> In-Reply-To: <20040818102107.S872@beagle.kn.op.dlr.de> References: <200408180706.i7I763ps032344@repoman.freebsd.org> <20040818081702.GB91053@ip.net.ua> <20040818102107.S872@beagle.kn.op.dlr.de>
next in thread | previous in thread | raw e-mail | index | archive | help
--fdj2RfSjLxBAspz7 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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 Makefil= e=20 > below) >=20 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=20 > make(1)? >=20 You mean documenting the difference between .MAKEFLAGS macro and .MAKEFLAGS target? %%% Index: make.1 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D 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, --=20 Ruslan Ermilov ru@FreeBSD.org FreeBSD committer --fdj2RfSjLxBAspz7 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.5 (FreeBSD) iD8DBQFBIxuSqRfpzJluFF4RAjonAKCSaWyvq4aOZFSM0YI94OnpRhyAxACgjmZ2 oHSzoy9zpZ/Nx1kTebJcYEE= =E7w+ -----END PGP SIGNATURE----- --fdj2RfSjLxBAspz7--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040818090418.GA91463>