Got it, sorry for wasting the band width :) INCLUDE := -Idogs -Ipigs -Isheep -Irats
PC_TO_O = @echo $$(subst -I,include=,$$(INCLUDE)) .PHONY : x define x x : ; $(PC_TO_O) endef $(eval $(call x)) > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf > Of PATTON, BILLY (SBCSI) > Sent: Tuesday, May 23, 2006 8:49 AM > To: [email protected] > Subject: problems with $$ > > > I have the following example : > INCLUDE := -Idogs -Ipigs -Isheep -Irats > > PC_TO_O = @echo $$(INCLUDE:-I=include\=) > > .PHONY : x > > define x > x : ; $(PC_TO_O) > endef > $(eval $(call x)) > > > > It need to print out > include=dogs include=pigs include=sheep include=rats > > > _______________________________________________ > Help-make mailing list > [email protected] > http://lists.gnu.org/mailman/listinfo/help-make > _______________________________________________ Help-make mailing list [email protected] http://lists.gnu.org/mailman/listinfo/help-make
