From owner-freebsd-bugs@FreeBSD.ORG Thu Jul 1 08:40:59 2004 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7597616A4CE for ; Thu, 1 Jul 2004 08:40:59 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6F86D43D45 for ; Thu, 1 Jul 2004 08:40:59 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.11/8.12.11) with ESMTP id i618eNpc088982 for ; Thu, 1 Jul 2004 08:40:23 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.11/8.12.11/Submit) id i618eNAn088981; Thu, 1 Jul 2004 08:40:23 GMT (envelope-from gnats) Date: Thu, 1 Jul 2004 08:40:23 GMT Message-Id: <200407010840.i618eNAn088981@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org From: Ruslan Ermilov Subject: Re: bin/68534: make(1) - ${.MAKEFLAGS} does not contain cmd line args X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Ruslan Ermilov List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Jul 2004 08:40:59 -0000 The following reply was made to PR bin/68534; it has been noted by GNATS. From: Ruslan Ermilov To: John E Hein 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