delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/01/16/16:47:16

Date: Tue, 16 Jan 1996 15:34:41 -0600 (CST)
From: Aaron Ucko <UCKO AT VAX1 DOT ROCKHURST DOT EDU>
Subject: Re: Make error...Help
To: eliz AT is DOT elta DOT co DOT il
Cc: djgpp AT delorie DOT com, bug-gnu-util AT prep DOT ai DOT mit DOT edu
Message-id: <01I030132A560017W1@VAX1.ROCKHURST.EDU>
Organization: Rockhurst College; Kansas City, MO
MIME-version: 1.0

>Also, don't use backslashes in your Makefile, use forward slashes 
>instead.  GNU Make has several built-in filename functions which only 
>work correctly on forward slashes notation.  If you do use backslashes, 
>they must be escaped by another backslash, like this:
>
>> enumw_dj.exe: $(DJGPP)\\rsxwdk\\rsxw32.exe
>
>A `\' is an escape character in GNU Make, so a single backslash is simply
>removed from the text, and what Make sees after reading your Makefile is
>this: 
>
>> enumw_dj.exe: $(DJGPP)rsxwdkrsxw32.exe
>
>Probably not what you meant.

But single backslashes _aren't_ simply removed.  If I try to depend
a file on the file `foo:bar' (this is under Linux, BTW), and tell make

mytarget: foo\:bar,

it tries to find the file `foo\:bar' (without the backslash, it just
dies because it thinks I'm trying to create a percentless pattern rule.)

-- Aaron Ucko (ucko AT vax1 DOT rockhurst DOT edu; finger for PGP public key) | httyp!
"That's right," he said. "We're philosophers. We think, therefore we am."
-- Terry Pratchett, _Small Gods_ | Geek Code 3.1 [for explanation, finger 
 hayden AT mankato DOT msus DOT edu]: GCS/M/S/C d- s: a18 C++(+++)>++++ UL++>++++ P++ 
 L++>+++++ E- W(-) N++(+) o+ K- w--- O M@ V-(--) PS++(+++) PE- Y(+) PGP(+) t(+)
 !5 X-- R(-) tv-@ b++(+++) DI+ !D-- G++(+++) e->+++++(*) h!>+ r-(--)>+++ y?

- Raw text -


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