[Top][All Lists]

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

Re: $(eval within conditional causes "missing `endif'" error

From: Paul D. Smith
Subject: Re: $(eval within conditional causes "missing `endif'" error
Date: Thu, 5 Jun 2003 09:48:21 -0400

%% "Jan Beulich" <address@hidden> writes:

  jb> investigating the possibilities the new features in make 3.80
  jb> offer I found that I cannot have an $(eval inside any sort of
  jb> conditional. As the mailing list documents that this has already
  jb> been observed I'd like to find out what the intentions are to fix
  jb> this.

Looking further in the mailing list would surely have shown you that
this bug was reported (bug #1516) and fixed already (in the source tree)
and that there's a patch attached to the bug report which you can apply
to your 3.80 sources to fix it: see the bug report in Savannah:


  jb> Especially would it seem questionable to me whether the same logic
  jb> as in the include directive handling can be applied here, since it
  jb> may be useful to be able to interact with the conditionals state
  jb> previously in effect.

I'm not sure which "include directive handling" you mean, but as with
include files all conditionals started within an eval must be closed
within the same eval.  That's the only restriction.

 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]