Unix Programming - semicolon in Makefile target filename?

This is Interesting: Free IT Magazines  
Home > Archive > Unix Programming > February 2005 > semicolon in Makefile target filename?





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

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
Amit

2005-02-03, 7:52 am

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
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com