bin/68534: make(1) - ${.MAKEFLAGS} does not contain cmd line
args
Ruslan Ermilov
ru at FreeBSD.org
Thu Jul 1 01:40:59 PDT 2004
The following reply was made to PR bin/68534; it has been noted by GNATS.
From: Ruslan Ermilov <ru at FreeBSD.org>
To: John E Hein <jhein at timing.com>
Cc: bug-followup at 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 at FreeBSD.org
FreeBSD committer
More information about the freebsd-bugs
mailing list