On Tue, 2005-02-22 at 14:43 +0100, Mariusz Janczak wrote:
> How to convert slash into backslash within folder name.
> 
> I tried following:
> 
> slash:= \\
> backslash:= /
> $(subst $(slash),$(backslash),$(folder))

That should work, I assume that you want to change the value of the
variable folder in which case you need an assignment somewhere.  In your
example that's going to do the substitution on the value of folder and
then return that value as the return value from folder.  Since you
aren't assigning the result of the $(subst) you'll probably get an error
from make.

Try this:

folder := $(subst \\,/,$(folder)

John.
-- 
John Graham-Cumming

Home: http://www.jgc.org/
Work: http://www.electric-cloud.com/
POPFile: http://getpopfile.org/
GNU Make Standard Library: http://gmsl.sf.net/




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

Reply via email to