| Author |
semicolon in Makefile target filename?
|
|
| Ahn Ki-yung 2005-02-01, 8:47 pm |
| It is possible to use ' ' or '&' but I'm having difficultiy
in using ';' in the target filename. Is there any way to
do this in make? I need to generate files having filenames with ';'.
I'm stuck like this.
kyagrd@kyagrd:kyagrd$ cat Makefile
"yahoo;google.doc":
echo testing strange filenames
kyagrd@kyagrd:kyagrd$ make
Makefilel:1: *** missing separator. Stop
| |
|
| Ahn Ki-yung wrote:
> It is possible to use ' ' or '&' but I'm having difficultiy
> in using ';' in the target filename. Is there any way to
> do this in make? I need to generate files having filenames with ';'.
> I'm stuck like this.
>
>
> kyagrd@kyagrd:kyagrd$ cat Makefile
> "yahoo;google.doc":
> echo testing strange filenames
> kyagrd@kyagrd:kyagrd$ make
> Makefilel:1: *** missing separator. Stop
Use this:
"yahoo\;google.oc":
echo testing strange filenames
You can use special characters in target names by immediately preceding
each special character with a backslash (\).
| |
| Dirk Gouders 2005-02-04, 7:52 am |
|
> "yahoo\;google.oc":
> echo testing strange filenames
>
> You can use special characters in target names by immediately preceding
> each special character with a backslash (\).
I also wanted to propose this, when I read the question but this
solution doesn't seem to work with GNU Make (version 3.80).
Dirk
| |
| Ian Zimmerman 2005-02-14, 2:51 am |
|
Amit> "yahoo\;google.oc":
Amit> echo testing strange filenames
Amit>
Amit> You can use special characters in target names by immediately preceding
Amit> each special character with a backslash (\).
Dirk> I also wanted to propose this, when I read the question but this
Dirk> solution doesn't seem to work with GNU Make (version 3.80).
I guess if nothing else works, you could use a variable:
SEMI = ;
yahoo$(SEMI)google.oc :
....
--
I wonder which is the best virus for unix and if I can write
a better one in Microsoft BASIC ?
Hans-Marc Olsen in comp.unix.programmer
| |
| Dirk Gouders 2005-02-16, 7:55 am |
|
> Dirk> I also wanted to propose this, when I read the question but this
> Dirk> solution doesn't seem to work with GNU Make (version 3.80).
>
> I guess if nothing else works, you could use a variable:
>
> SEMI = ;
>
> yahoo$(SEMI)google.oc :
Also tried that but unfortunately, it also doesn't seem to work with
GNU Make...
Dirk
|
|
|
|