[Omake] scoping rules/export for subdirs
Aleksey Nogin
nogin at metaprl.org
Sat May 26 20:51:03 PDT 2007
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
More information about the Omake
mailing list