delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/04/08/23:02:30

From: Thomas Demmer <demmer AT LSTM DOT Ruhr-UNI-Bochum DOT De>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: When in Rome...
Date: Wed, 08 Apr 1998 22:16:37 +0200
Organization: Lehrstuhl fuer Stroemungsmechanik
Lines: 38
Message-ID: <352BDB25.212234CA@LSTM.Ruhr-UNI-Bochum.De>
References: <352BBDA7 DOT 7D2BFE29 AT home DOT com>
NNTP-Posting-Host: bvb.lstm.ruhr-uni-bochum.de
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Edward F. Sowell wrote:
> 
> I have a complaint about the way GNU make deals with the DOS/Windows
> path separator, '\'. It has been pointed out to me that I can't
> use mydir\myfile in a GNU makefile because \ is an escape character for
> GNU make.
> The suggested workarounds are (a) use \\ or (b) use /. Well, there are
> cases
> (like mine) where neither will really work.
> 
> First, a silly little example. The makefile:
> ../gpp/myfunct.obj:     myfunct.cpp
>         gcc -v -c -o ../gpp/myfunct.obj myfunct.cpp
>         move myfunct.obj f:/spark/doc/examples/int
> 
> will not work, failing at the move. Says "Too many parameters - /spark"
> Apparently, the / are not converted to \ for DOS commands. If I change
> the move to
[...]

Get the fileutils, replace "move" by "mv" and live happily
ever after. You also get "rm", which is much better than
"del", and some other nice utilities.

-- 
Ciao
Tom

*************************************************************
* Thomas Demmer                                             *
* Lehrstuhl fuer Stroemungsmechanik                         *
* Ruhr-Uni-Bochum                                           *
* Universitaetsstr. 150                                     *
* D-44780  Bochum                                           *
* Tel: +49 234 700 6434                                     *
* Fax: +49 234 709 4162                                     *
* http://www.lstm.ruhr-uni-bochum.de/~demmer                *
*************************************************************

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019