www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2002/08/26/13:39:56

X-Authentication-Warning: kendall.sfbr.org: jeffw set sender to jeffw AT darwin DOT sfbr DOT org using -f
Date: Mon, 26 Aug 2002 12:36:33 -0500
From: JT Williams <jeffw AT darwin DOT sfbr DOT org>
To: djgpp AT delorie DOT com
Subject: file names in Makefile
Message-ID: <20020826173633.GB23913@kendall.sfbr.org>
Mail-Followup-To: djgpp AT delorie DOT com
Mime-Version: 1.0
User-Agent: Mutt/1.4i
Reply-To: djgpp AT delorie DOT com

Hello,

How can I use file names with `special' characters in a Makefile?

Consider:

SRC += '2001;6(2):126--135.pdf'

all:	$(SRC)
	pdf2ps $^


If I try to quote my way around this, I get a message like this:

% make
make: *** No rule to make target `'2001', needed by `all'.  Stop.

If I backslash the semicolon and/or parentheses, I get this:

% make
Makefile:4: *** target pattern contains no `%'.  Stop.

TIA/jtw

- Raw text -


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