make-w32
[Top][All Lists]
Advanced

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

Re: \ or / in make file


From: ma
Subject: Re: \ or / in make file
Date: Tue, 11 Jul 2006 08:45:10 +0100

"Eli Zaretskii" <address@hidden> wrote in message 
news:address@hidden
>> From: "ma" <address@hidden>
>> 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.







reply via email to

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