RE: How to pass a group of COMPILER OPTIONS using GNU Make Command Line under WINDOWS

Paul Smith <[email protected]>
Newsgroups gmane.comp.gnu.make.windows
Organization GNU's Not Unix!
Message-ID <1286818492.17296.97.camel@homebase>
On Mon, 2010-10-11 at 14:18 +0000, Partha None wrote:
> I am confused about not passing $(MAKEFLAGS) to the invoked
> sub-makefile.
> I need to pass that because I wanted to pass all the parameters of the
> COMMAND LINE to the invoked sub-makefile which I am calling from the
> root MAKEFILE.
> So, why are you saying to remove $(MAKEFLAGS)? 

Hi Partha; please keep all discussion on the mailing lists, thanks!

I explained the answers to your questions in my original reply:

> Using the variable $(MAKE) in your rule is enough.  All the command line
> flags are transmitted to sub-makes through a special method make uses,
> which ensures proper quoting etc.  Trying to do it yourself, as you're
> doing here, is almost certainly doomed to fail.

By "flags" above I mean not only make options but also variable
assignments on the command line.

-- 
-------------------------------------------------------------------------------
 Paul D. Smith <[email protected]>          Find some GNU make tips at:
 http://www.gnu.org                      http://make.mad-scientist.net
 "Please remain calm...I may be mad, but I am a professional." --Mad Scientist
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.