[Top][All Lists]

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

Re: List of available targets in a variable?

From: Paul D. Smith
Subject: Re: List of available targets in a variable?
Date: Mon, 7 Jun 2004 18:09:03 -0400

%% Jeff Bailey <address@hidden> writes:

  jb> Is there a variable similar to MAKEFILE_LIST and .VARIABLES that
  jb> will give a list of all defined targets?  I thought there was, but
  jb> I don't see any mention of it in the manual.

There was, but I took it out before the release.

  jb> If no, would patches for this be welcomed?  I already have
  jb> copyright assignment taken care of.

I have the code for a simple version of this.  The reason I took it out
was that the value of the variable is not updated until after the target
is completely parsed (that's the simple implementation).

I don't like that: I would like to see the value updated as soon as the
target is recognized (basically as soon as the ":" is grokked by the

This is much more of a pain so I left out the feature until I could get
back to it and implement it correctly.

 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]