bugmake - Bugs: bug #10592, $(eval) reports syntax error from...

 
 

bug #10592: $(eval) reports syntax error from inside ifdef

Submitted by:  None
Submitted on:  Tue 05 Oct 2004 11:09:56 PM UTC  
 
Severity: 3 - NormalItem Group: Bug
Status: DuplicatePrivacy: Public
Assigned to: NoneOpen/Closed: Closed
Component Version: 3.80Operating System: Any
Fixed Release: NoneTriage Status: None

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Wed 06 Oct 2004 12:43:41 AM UTC, comment #1:

This is a duplicate of bug #1516. There's a patch attached to that bug. It will be fixed in the next release.

Paul D. Smith <psmith>
Project Administrator
Tue 05 Oct 2004 11:09:56 PM UTC, original submission:

Here is a simple Makefile that illustrates a problem I encountered:

--------------------------------------------------
define FUNCTION
$(1) : $(2)
@echo Making $$@ from $$?
$(2) :
@echo Making $$@
endef

ifdef BLA

$(eval $(call FUNCTION,a,b))

endif
-----------------------------------------------

If I invoke make on this file not defining BLA, I get make: *** No targets. Stop.
This is expected.

If I say:

make BLA=yes, I get an error
Makefile:9: *** missing `endif'. Stop.

If I remove ifdef BLA and endif around $(eval) and call make, then I get as expected.

Making b
Making a from b

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

Do you think this task is very important?
If so, you can click here to add your encouragement to it.
This task has 0 encouragements so far.

Only logged-in users can vote.

 

Please enter the title of George Orwell's famous dystopian book (it's a date):

 

 

Follow 2 latest changes.

Date Changed By Updated Field Previous Value => Replaced By
Wed 06 Oct 2004 12:43:41 AM UTCpsmithStatusNone=>Duplicate
  Open/ClosedOpen=>Closed

Back to the top


Powered by Savane 3.1-cleanup1