Mail Archives: djgpp/2002/08/26/14:59:26
> Date: Mon, 26 Aug 2002 12:36:33 -0500
> From: JT Williams <jeffw AT darwin DOT sfbr DOT org>
>
> 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.
You need to quote the colon as well:
SRC += 2001\;6(2)\:126--135.pdf
This works for me, except that the backslash which quotes the colon is
not removed. I suspect that's a DJGPP-specific bug (due to drive
letters in file names which need special handling), and that on a Unix
box you will not see that problem. Could you please see whether Make
indeed has a bug there, and perhaps suggest a way to fix that?
In any case, the Make escape character is a backslash and nothing
else. Single and double quotes work only in commands (as opposed to
rules), and that's because they are handled by the shell, not by Make.
I also believe that you don't need to escape the parentheses.
- Raw text -