help-make
[Top][All Lists]
Advanced

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

RE: problems with $$


From: PATTON, BILLY \(SBCSI\)
Subject: RE: problems with $$
Date: Tue, 23 May 2006 08:56:44 -0500

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: address@hidden 
> [mailto:address@hidden On Behalf 
> Of PATTON, BILLY (SBCSI)
> Sent: Tuesday, May 23, 2006 8:49 AM
> To: address@hidden
> 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
> address@hidden
> http://lists.gnu.org/mailman/listinfo/help-make
> 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]