Date: Thu, 1 Jul 2004 08:40:23 GMT From: Ruslan Ermilov <ru@FreeBSD.org> To: freebsd-bugs@FreeBSD.org Subject: Re: bin/68534: make(1) - ${.MAKEFLAGS} does not contain cmd line args Message-ID: <200407010840.i618eNAn088981@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR bin/68534; it has been noted by GNATS. From: Ruslan Ermilov <ru@FreeBSD.org> To: John E Hein <jhein@timing.com> Cc: bug-followup@FreeBSD.org Subject: Re: bin/68534: make(1) - ${.MAKEFLAGS} does not contain cmd line args Date: Thu, 1 Jul 2004 11:33:21 +0300 On Thu, Jul 01, 2004 at 01:10:26AM +0000, John E Hein wrote: > First, let me quote the section. > > .MAKEFLAGS > The environment variable MAKEFLAGS may contain anything that > may be specified on make's command line. Its contents are > stored in make's .MAKEFLAGS variable. Anything specified on > make's command line is appended to the .MAKEFLAGS variable > which is then entered into the environment as MAKEFLAGS for > all programs which make executes. > > I see the 'may'. But the 3rd sentence seems more definitive. At the > least it's misleading. But I still don't see any way to get anything > specified on the command line into MAKEFLAGS (or .MAKEFLAGS). > Only variable=value are not stored in .MAKEFLAGS at the moment, everything else does. With this command line, make -DFOO BAR=2 -B -j2 MAKEFLAGS will be ``-D FOO -B -j 2''. See the PR which this one duplicates, which has a patch to store command line variable assignments in .MAKEFLAGS. Cheers, -- Ruslan Ermilov ru@FreeBSD.org FreeBSD committer
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200407010840.i618eNAn088981>