help-make
[Top][All Lists]
Advanced

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

Re: How to convert slash into backslash within folder name


From: Paul D. Smith
Subject: Re: How to convert slash into backslash within folder name
Date: Tue, 22 Feb 2005 10:00:56 -0500

%% "Mariusz Janczak" <address@hidden> writes:

  mj> How to convert slash into backslash within folder name.

  mj> I tried following:

  mj> slash:= \\
  mj> backslash:= /

First, your names are backwards :-).  A slash is "/" and a backslash is
"\".

Getting a variable to contain just a backslash is a little tricky.
Putting a backslash on the end of the line obviously continues the
line.  Putting two doesn't continue the line, but also leaves two
backslashes there.  Odd, but true.  What you need to do is trick make
into thinking it's not the end of the line after the backslash.

One way is this:

 E :=
 backslash := \$E

-- 
-------------------------------------------------------------------------------
 Paul D. Smith <address@hidden>          Find some GNU make tips at:
 http://www.gnu.org                      http://make.paulandlesley.org
 "Please remain calm...I may be mad, but I am a professional." --Mad Scientist




reply via email to

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