[Omake] scoping rules/export for subdirs
Christopher L Conway
cconway at cs.nyu.edu
Mon May 28 09:36:57 PDT 2007
Thanks, Aleksey. This worked.
Chris
On 5/26/07, Aleksey Nogin <nogin at metaprl.org> wrote:
> On 25.05.2007 14:06, Christopher L Conway wrote:
>
> > Is it possible to export a variable from a subdir to the parent?
>
> Yes - you need to use the .SUBDIRS form with a body.
>
> Note that the normal form without a body
>
> .SUBDIRS: foo bar
>
> is equivalent to
>
> .SUBDIRS: foo bar
> include OMakefile
>
> Here the normal scoping rules apply and as there is no "export", the
> subdir's OMakefiles are evaluated in their separate scopes. However, you
> can always write things like
>
> .SUBDIRS: foo bar
> include OMakefile
> export
>
> if needed.
>
> Aleksey
> _______________________________________________
> Omake mailing list
> Omake at metaprl.org
> https://lists.metaprl.org/mailman/listinfo/omake
>
>
More information about the Omake
mailing list