make-w32
[Top][All Lists]
Advanced

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

Re: \ or / in make file


From: Eli Zaretskii
Subject: Re: \ or / in make file
Date: Tue, 11 Jul 2006 06:22:12 +0300

> 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.




reply via email to

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