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

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

Re: make question (eval)


From: Paul D. Smith
Subject: Re: make question (eval)
Date: 24 Jan 2006 21:37:28 -0500
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.4

%% "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


reply via email to

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