bugmake - Bugs: bug #9707, $(eval ) has issues

 
 

bug #9707: $(eval ) has issues

Submitted by:  Jim <d3x0r>
Submitted on:  Wed 21 Jul 2004 12:41:04 AM 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 21 Jul 2004 12:46:09 AM UTC, comment #1:

See Bug # 1516 (closed, with a patch attachment).

In the future when reporting bugs please show the error you actually get, at least once in your report. It's no fun for us to have to copy/paste/try out test makefiles when if the error had been included in the report we would have immediately known what the problem was. Thanks!

If you don't agree with this please email me (psmith@gnu.org) since, due to a bug in Savannah, I don't get any notice when notes are added to bugs.

Paul D. Smith <psmith>
Project Administrator
Wed 21 Jul 2004 12:41:04 AM UTC, original submission:

# Makefile

ifeq (1,1)
$(eval all:fakeall)
endif

#end makefile

Simple - just define a static rule... I walked away and thought about this... could easily just define a variable in the related if above the eval, and then do it, but perhaps the eval needs to not be done at all... hmm

but what about a more complex case where the procedure changes radically...

ifeq '$(VPATH)' ''
$(eval $(call std_obj_from_c,9,,$(RINTDEST)))
else
$(foreach vp,$(VPATH),$(eval $(call std_obj_from_asm,9,$(vp),$(vp)/$(RINTDEST))))
endif

where one is a simple case and the other iterates through the VPATH elements...

ifeq '$(VPATH)' ''
Azz=$$(eval $$(call std_obj_from_c,9,,$$(RINTDEST)))
else
Azz=$$(foreach vp,$$(VPATH),$$(eval $$(call std_obj_from_asm,9,$$(vp),$$(vp)/$$(RINTDEST))))
endif
$(eval Azz)

seems like a lot of work to do something so simple...

Jim <d3x0r>

 

(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 21 Jul 2004 12:46:09 AM UTCpsmithStatusNone=>Duplicate
  Open/ClosedOpen=>Closed

Back to the top


Powered by Savane 3.1-cleanup1