help-make
[Top][All Lists]
Advanced

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

Re: .if !target(foo) equivalent?


From: Paul D. Smith
Subject: Re: .if !target(foo) equivalent?
Date: Fri, 27 Jan 2006 12:53:59 -0500

%% Dan McMahill <address@hidden> writes:

  dm> Paul D. Smith wrote:
  >> %% address@hidden writes:
  >> 
  m> Is there a test to see if a target has been defined?

  >> Not in the current version of GNU make.  It was planned for the next
  >> version but due to complications it will probably drop out.  It will be
  >> in the version after that.

  dm> Did this feature ever get implemented?

Not yet.  It turns out that in order to do this correctly the parser to
make has to be modified.  Make doesn't define a target internally until
it has been fully parsed, which means that some tests didn't work as
expected.

In order to implement this, the parser needs to be changed to add
targets to the internal database as soon as they're parsed.

-- 
-------------------------------------------------------------------------------
 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]