Mail Archives: djgpp/1998/04/08/23:02:30
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 -