help-make
[Top][All Lists]
Advanced

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

Question about the proper use of the eval function


From: Sarbak, Joseph T.
Subject: Question about the proper use of the eval function
Date: Thu, 7 Apr 2005 10:36:58 -0400

Hello,

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_target) )

From the Command-Line:

bash-2.05b$ make my_target
make: *** No rule to make target `my_target'.  Stop.
bash-2.05b$


reply via email to

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