On Thu, 2021-05-06 at 17:11 +0000, Martin Dorey wrote:
> > The manual doesn't actually say that MAKEOVERRIDES is exported like
> MAKEFLAGS but I assume it is.
> 
> I was going to just say that MAKEFLAGS would be expanded before being
> exported, and indeed it is, but, having tried it, the results aren't
> quite what I would have expected, even having just skimmed the
> section on MAKEOVERRIDES that Paul just cited.
> 
> $ make TESTNAME=badger 2>&1 | grep MAKE
> MAKEFLAGS= -- TESTNAME=badger
> ... eliding mentions of MAKE in my environment already...
> MAKEOVERRIDES=${-*-command-variables-*-}
> MAKELEVEL=1
> $ 
> 
> So MAKEOVERRIDES is exported, though perhaps it doesn't need to be,
> but isn't expanded before being exported.

Without seeing your makefile I can't say what you're seeing but I don't
see it exported:

  $ echo 'all:;@echo "mo=$$MAKEOVERRIDES"' | make -f-
  mo=



Reply via email to