help-make
[Top][All Lists]
Advanced

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

Re: transforming text


From: Maciej Walezak
Subject: Re: transforming text
Date: Fri, 22 Feb 2002 15:32:26 +0100

Yeah, it works great!
Interesting trick.
Thanks!

> Hi,
> 
> Here is one of the solution which works fine.
> 
> _empty_ :=
> _space_ := $(_empty_) $(_empty_)
> DCLDEF = foo=path/foo.dcl bar=path/bar.dcl a_junk=a_path/junk.sc
> TEST = $(filter-out %=,$(subst =,=$(_space_),$(DCLDEF)))
> 
> default:
>         @echo $(DCLDEF)
>         @echo $(TEST)
> 
> regards
> 
> Bhaskar G
> 
> SSD/DTG/CTO
> PS DCC - B,
> Philips Innovation Campus, 1&2 Murphy Road,
> Ulsoor, Bangalore 560 008.
> Mail: address@hidden
> ____________________________________________________
> "I find that the harder I work, the more luck I seem to have. "
> 
> 
>                                                                               
>                                                                    
>                     Maciej Walezak                                            
>                                                                    
>                     <address@hidden           To:  address@hidden             
>                                                            
>                     -tech.net>                     cc:  (bcc: Bhaskar 
> G/BTC/SC/PHILIPS)                                                          
>                     Sent by:                       Subject:  transforming 
> text                                                                   
>                     address@hidden                                            
>                                                              
>                     org                            Classification:            
>                                                                    
>                                                                               
>                                                                    
>                                                                               
>                                                                    
>                     02/22/02 11:34 AM                                         
>                                                                    
>                     Please respond to                                         
>                                                                    
>                     help-make                                                 
>                                                                    
>                                                                               
>                                                                    
>                                                                               
>                                                                    
> 
> 
> 
> 
> 
> Hello,
> 
> I have the following variable:
> 
> DCLDEF = foo=path/foo.dcl bar=path/bar.dcl a_junk=a_path/junk.sc
> 
> I want to have another variable containing the same list but without the 
> prefix *= i.e.
> path/foo.dcl path/bar.dcl a_path/junk.sc
> 
> How can I do that? $(patsubst %=,,$(DCLDEF)) does not work.
> 
> greetings
> --
> Maciej Walezak
> -GDN-
> 
> _______________________________________________
> Help-make mailing list
> address@hidden
> http://mail.gnu.org/mailman/listinfo/help-make
> 
> 
> 
> 
> 
> _______________________________________________
> Help-make mailing list
> address@hidden
> http://mail.gnu.org/mailman/listinfo/help-make


--
Maciej Walezak
-GDN-



reply via email to

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