"Eli Zaretskii" <[EMAIL PROTECTED]> wrote in message 
news:[EMAIL PROTECTED]
>> From: "ma" <[EMAIL PROTECTED]>
>> Date: Mon, 10 Jul 2006 23:51:56 +0100
>>
>> BLD=c:\test\
>> [...]
>> I don't have any control on the value of BLD. If the BLD has path using \ 
>> as
>> the path separator such as (c:\test\)the system doesn't work but if this
>> variable was created using / as path separator such as (c:/test/), make 
>> file
>> works well.
>>
>> As I mentioned I don't have any control on how BLD is set but I have 
>> fairly
>> control on some other items. How can change the make file that it works 
>> well
>> with \ as path separator?
>
> Your best bet is to convert the slashes in BLD, and leave everything
> else intact.  To that end, introduce another variable, BLD1, say, and
> set its value like this:
>
> BLD1 = $(subst \,/,$(BLD))
>
> Then use BLD1 in your other rules.

Thanks.
After a lot of trial and error, I found that only the last \ should be 
converted to / (!) so I did this and now it seems working !

thanks again for your helpful suggestion.





_______________________________________________
Make-w32 mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/make-w32

Reply via email to