Hello Peng Yu,

I found this $(eval$(call ...)) very interesting too and there is a simply example that generates rules in the make docomentation chapter 8.6 (call) and 8.8 (eval).
Hope this helps you

Martin

----- Original Message ----- From: Stephan Beal
To: Peng Yu
Cc: make-help mailing list
Sent: Sunday, May 02, 2010 3:20 AM
Subject: Re: How to define rule of rules?


On Sun, May 2, 2010 at 2:11 AM, Peng Yu <[email protected]> wrote:

I don't understand the above code. Would you give me the minimal code
for the scenario that mentioned in my first email?



Sorry, but i thought that's exactly what i did. i'm not going to rewrite it for you to 100% match your use-case, but the pattern demonstrated there is one way to solve the problem you asked about:


$(eval $(call png_rule,foo.R))


--
----- stephan beal
http://wanderinghorse.net/home/stephan/




_______________________________________________
Help-make mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-make


_______________________________________________
Help-make mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-make

Reply via email to