[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Preventing variables from being passed to a sub-make
From: |
Paul Smith |
Subject: |
Re: Preventing variables from being passed to a sub-make |
Date: |
Thu, 07 Jun 2007 08:42:37 -0400 |
On Wed, 2007-06-06 at 17:29 +0100, Will Newton wrote:
> I'm having problems stopping make from passing variables passed on the
> command line to a sub-make.
I think it's very, very unwise to break this capability, personally. I
would rather change your top-level makefile to use some different
variable that won't interfere with submakefiles (or vice versa).
> The manual mentions unsetting MAKEFLAGS or MAKEOVERRIDES but this
> seems to have no effect.
If you really want to do this you can use:
-*-command-variables-*- =
subdirs:
$(MAKE)
You can use "make -pf/dev/null" to see all the predefined variables and
how they fit together.
--
-------------------------------------------------------------------------------
Paul D. Smith <address@hidden> Find some GNU make tips at:
http://www.gnu.org http://make.paulandlesley.org
"Please remain calm...I may be mad, but I am a professional." --Mad Scientist