[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: how to indirect access a variable
From: |
Noel Yap |
Subject: |
Re: how to indirect access a variable |
Date: |
Mon, 27 Oct 2003 17:15:17 -0500 |
I'm not sure if this is a typo in your post, but $($property) should be
$(property).
Otherwise, what are you getting and what are you expecting?
HTH,
Noel
> Yanghui Bian wrote:
>
> Hello,
>
> If in my make file:
>
> blocks := a b
>
> a_property := 0 1 2 3
>
> b_property := 2 3 8 9
>
>
>
> How can I get a list of property in the first column for the all the blocks?
>
> I try to use the foreach as below:
>
> block_properties := $(foreach block, $(blocks), $(block)_property)
>
> properties_of_second_column := $(foreach property, $(block_properties),
> $(firstword $($property)))
>
> It doesnt work. Where is the problem?
>
>
>
> Thanks you.
>
> YBI
>
>
>
>
> -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
> _______________________________________________
> Help-make mailing list
> address@hidden
> http://mail.gnu.org/mailman/listinfo/help-make
--
NOTICE: If received in error, please destroy and notify sender. Sender does
not waive confidentiality or privilege, and use is prohibited.