help-make
[Top][All Lists]
Advanced

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

Re: debugging eval,call,foreach....


From: Paul D. Smith
Subject: Re: debugging eval,call,foreach....
Date: Tue, 15 Oct 2002 21:43:50 -0400

%% address@hidden writes:

  m> $(eval ...) and $(call ...) seem very powerful, but somewhat
  m> difficult to really debug.  Is there a way I can tell make to
  m> process my makefile expanding the $(eval ...) and $(call ...) and
  m> print out the result of this first pass expansion?

No.

  m> it would be nice have a way to produce:

  m> client: $(client_OBJS)
  m> ALL_OBJS+=$(client_OBJS)
  m> server: $(server_OBJS)
  m> ALL_OBJS+=$(server_OBJS)

It might be helpful to use the -p option to see what targets make
actually stored in its database.

I agree that some better debugging is needed, but currently there isn't
any.  I plan to look into different types of debugging output in the
future however.  Something like what you're asking for above shouldn't
be very difficult I don't think.

  m> oh, also the manual should have "OBJS" not "OBJ" in the PROGRAM_template
  m> definition.

Thx.

-- 
-------------------------------------------------------------------------------
 Paul D. Smith <address@hidden>          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]