help-gnu-utils
[Top][All Lists]
Advanced

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

Re: make question (eval)


From: James
Subject: Re: make question (eval)
Date: 25 Jan 2006 11:06:09 -0800
User-agent: G2/0.2

Paul D. Smith wrote:
> %% "James" <hslee@ind.alcatel.com> writes:
>
>   j> Is there a way to see how the actual rules look like when eval is used?
>
> Replace the eval with warning:
>
>   j> For example,
>
>   j> define F
>   j> $(1): $(2)
>   j>        @echo $$@ $$^
>   j> endef
>
>   j> $(eval $(define F,t1,d1 d2))
>
> (you mean call not define I presume?)
>
>   $(warning $(call F,t1,d1 d2))
>
> will print what eval will eval.
>
>
> If you're using one of the 3.81 betas, you can use $(info ...) instead
> of warning and get rid of the filename/linenumber stuff.
>
> --
> -------------------------------------------------------------------------------
>  Paul D. Smith <psmith@gnu.org>          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

Yes, I meant call not define.
Thanks a lot. It's very helpful.

James



reply via email to

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