[Omake] environments & export
Janne Hellsten
jjhellst at gmail.com
Tue Sep 19 13:07:08 PDT 2006
I'm a little confused. I'm sorry if this is a FAQ..
I have the following code in my OMakefile:
8<
TESTS=\
test_cache_speed test_samples \
test_arm_asm
if $(equal $(ARM_ELF_TOOLCHAIN),true)
TESTS+=test_arm_interp
8<
However, if ARM_ELF_TOOLCHAIN is equal to true, TESTS doesn't get
added the value "test_arm_interp". This happens only if I rewrite the
if like so:
8<
if $(equal $(ARM_ELF_TOOLCHAIN),true)
TESTS+=test_arm_interp
export
8<
I would've expected TESTS in the enclosing environment to become
updated. Apparently what happens now is that TESTS becomes a fresh
variable inside the "if" and never gets exported to the upper scope.
Is this the expected behaviour? This is rather surprising to me. Is
there some nicer way to write the above if statement?
I'm using OMake from GODI, i.e., version 0.9.6.9.
Thanks for OMake!
Janne
More information about the Omake
mailing list