help-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Question about the proper use of the eval function


From: Sarbak, Joseph T.
Subject: RE: Question about the proper use of the eval function
Date: Fri, 8 Apr 2005 09:09:52 -0400

Thank you, David.  I will look at it.

Best.
JS 



        Joseph T. Sarbak
        Goldman Sachs Execution & Clearing
        30 Hudson St
        Jersey City, NJ.  07302-4699
        address@hidden
        212-902-9273


-----Original Message-----
From: David Boyce [mailto:address@hidden 
Sent: Thursday, April 07, 2005 8:06 PM
To: Ken Smith; Sarbak, Joseph T.
Cc: 'address@hidden'
Subject: Re: Question about the proper use of the eval function

And for future reference a treasure trove of examples may be found at
http://gmsl.sourceforge.net/.

-dsb

At 10:55 AM 4/7/2005, Ken Smith wrote:
>Here is a version of your file which does what you want.
>
>define my-test
>my_target:
>         echo "hi from my target"
>endef
>$(eval $(my-test))
>
>You don't need $(call) since you aren't passing any parameters.
>
>   Ken
>
>On Thu, Apr 07, 2005 at 10:42:33AM -0400, Sarbak, Joseph T. wrote:
> >
> >    The  previous  email  contained  a  typo,  which  I have fixed in
this
> >    update.  The results and questions remain.  Thank you in advance.
> >    I  am trying to dynamically generate targets in my makefile.  Below
is
> >        a  simple  example  of  what  I am trying to do.  I must be
either
> >        doing something wrong or am trying to do something impossible
with
> >        gnu  make.   I would greatly appreciate help from anyone on how
to
> >        to this properly.
> >        My makefile:
> >        define my-test
> >        my_target:
> >                echo "hi from my target"
> >        endef
> >        $(eval $(call my_test) )
> >        From the Command-Line:
> >        bash-2.05b$ make my_target
> >        make: *** No rule to make target `my_target'.  Stop.
> >        bash-2.05b$
> >
> >    _Joseph T. Sarbak_
> >        _Goldman Sachs Execution & Clearing_
> >        _30 Hudson St_
> >        _Jersey City, NJ.  07302-4699_
> >        address@hidden
> >        _212-902-9273_
>
> > _______________________________________________
> > Help-make mailing list
> > address@hidden
> > http://lists.gnu.org/mailman/listinfo/help-make
>
>
>_______________________________________________
>Help-make mailing list
>address@hidden
>http://lists.gnu.org/mailman/listinfo/help-make





reply via email to

[Prev in Thread] Current Thread [Next in Thread]