bugmake - Bugs: bug #29885, MAKEFLAGS doen't pass commandline...

 
 

bug #29885: MAKEFLAGS doen't pass commandline varaibles to sub-make

Submitted by:  Bill Cox <llib_xoc>
Submitted on:  Fri 14 May 2010 09:28:40 PM UTC  
 
Severity: 3 - NormalItem Group: Bug
Status: Works for mePrivacy: Public
Assigned to: NoneOpen/Closed: Closed
Component Version: 3.81Operating System: POSIX-Based
Fixed Release: NoneTriage Status: None

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Fri 14 May 2010 11:10:42 PM UTC, comment #1:

There is no makefile attached to this. However, everything works as I expect so I suspect there's a problem with your makefile.

Example:

Paul D. Smith <psmith>
Project Administrator
Fri 14 May 2010 09:28:40 PM UTC, original submission:

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?

Bill Cox <llib_xoc>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by psmith (Posted a comment)
  • -unavailable- added by llib_xoc (Submitted the item)
  • -unavailable- added by llib_xoc
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Fri 14 May 2010 11:11:14 PM UTCpsmithStatusNone=>Works for me
      Open/ClosedOpen=>Closed
    Fri 14 May 2010 09:28:40 PM UTCllib_xocCarbon-Copy-=>Added -unavailable-

    Back to the top


    Powered by Savane 3.1-cleanup1