[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: character substitution loop and eval
From: |
Paul D. Smith |
Subject: |
Re: character substitution loop and eval |
Date: |
Thu, 6 Jan 2005 17:12:08 -0500 |
%% "Dill, John" <address@hidden> writes:
dj> I have a problem I want to create a list of characters to pass to
dj> a function which calls subst over that list. I want to do
dj> something like this.
dj> my_chars:=1 2 3 4 5 6 7 8 9
dj> my-subst=$(eval temp_variable := $1)$(foreach iter,$(my_chars),$(eval
temp_variable:=$(subst $(iter),,$(temp_variable))))$(temp_variable)
dj> where my_chars could be simply $2.
Can you be a little more clear about this?
How would you call my-subst and what do you want the resulting expansion
to be?
--
-------------------------------------------------------------------------------
Paul D. Smith <address@hidden> Find some GNU make tips at:
http://www.gnu.org http://make.paulandlesley.org
"Please remain calm...I may be mad, but I am a professional." --Mad Scientist