2011/10/25 Ian Jackson <Ian.Jackson@xxxxxxxxxxxxx>:
> Roger Pau Monné writes ("Re: [Xen-devel] [PATCH] tools/check: check for
> headers and libraries in EXTRA_INCLUDES and EXTRA_LIB"):
>> And variables where not passed to executed script.
>
> mariner:~/junk> cat t.make
> export TEST=value
>
> target:
> printenv | grep TEST
> mariner:~/junk> make -f t.make target
> printenv | grep TEST
> TEST=value
> mariner:~/junk>
>
>
> Or if you prefer documentation, here is what Debian's
> make-doc-non-dfsg 3.81-5 has to say:
>
> 5.7.2 Communicating Variables to a Sub-`make'
> ---------------------------------------------
>
> ...
>
> To pass down, or "export", a variable, `make' adds the variable and
> its value to the environment for running each command. The sub-`make',
> in turn, uses the environment to initialize its table of variable
> values. *Note Variables from the Environment: Environment.
Sorry for that, I was doing it all wrong, I was reading the make man
page, not the gmake man page, and also I was trying to export the
variables inside the target definition. Anyway, I hope the patch I've
just sent is fine, sorry for the mess and the time you lost on this.
Roger.
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
|