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