[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug #29885] MAKEFLAGS doen't pass commandline varaibles to sub-make
From: |
Bill Cox |
Subject: |
[bug #29885] MAKEFLAGS doen't pass commandline varaibles to sub-make |
Date: |
Fri, 14 May 2010 21:28:41 +0000 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3 |
URL:
<http://savannah.gnu.org/bugs/?29885>
Summary: MAKEFLAGS doen't pass commandline varaibles to
sub-make
Project: make
Submitted by: llib_xoc
Submitted on: Fri 14 May 2010 09:28:40 PM GMT
Severity: 3 - Normal
Item Group: Bug
Status: None
Privacy: Public
Assigned to: None
Open/Closed: Open
Discussion Lock: Any
Component Version: 3.81
Operating System: POSIX-Based
Fixed Release: None
Triage Status: None
_______________________________________________________
Details:
The documentation says:
The special variable MAKEFLAGS is always exported (unless you unexport it).
MAKEFILES is exported if you set it to anything.
make automatically passes down variable values that were defined on the
command line, by putting them in the MAKEFLAGS variable. See
Options/Recursion.
Here's what I see with 3.81 on Linux,
bash-3.2$ make CPU=gcc -f makefile -b DEBUG=1 clean
make DEBUG=1 CPU=gcc -f makefile_aacmch_dec_lib clean
make[1]: Entering directory
`/fac/vol6/software/bcox/audio3/hf2/tie/aac/CTEnhancedAACMultiChannelDecoder/build'
makefile_aacmch_dec_lib:23: MAKE_RESTARTS=
makefile_aacmch_dec_lib:24: MAKE_VERSION=3.81
makefile_aacmch_dec_lib:25: MAKECMDGOALS=clean
makefile_aacmch_dec_lib:26: MAKEFILE_LIST= makefile_aacmch_dec_lib
makefile_aacmch_dec_lib:27: MAKEFILES=
makefile_aacmch_dec_lib:28: MAKEFLAGS=w
makefile_aacmch_dec_lib:29: MAKEINFO=makeinfo
makefile_aacmch_dec_lib:30: MAKELEVEL=1
makefile_aacmch_dec_lib:31: MAKEOVERRIDES=CPU=gcc DEBUG=1
makefile_aacmch_dec_lib:32: MAKESHELL=
The above $(warning)s are the first non-comment lines in
makefile_aacmch_dec_lib. As you can see from the attached makefile, I not
unexport'ed MAKEFLAGS.
I remember the behavior used to work just as documented. Am I missing
something?
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?29885>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [bug #29885] MAKEFLAGS doen't pass commandline varaibles to sub-make,
Bill Cox <=