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-make mailing list Bug-make@gnu.org http://lists.gnu.org/mailman/listinfo/bug-make