semicolon in Makefile target filename?
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Unix and Linux reviews > Free Unix support > Unix Programming > semicolon in Makefile target filename?




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    semicolon in Makefile target filename?  
Ahn Ki-yung


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
02-02-05 01:47 AM

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





[ Post a follow-up to this message ]



    Re: semicolon in Makefile target filename?  
Amit


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
02-03-05 12:52 PM

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 (\).





[ Post a follow-up to this message ]



    Re: semicolon in Makefile target filename?  
Dirk Gouders


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
02-04-05 12:52 PM


> "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





[ Post a follow-up to this message ]



    Re: semicolon in Makefile target filename?  
Ian Zimmerman


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
02-14-05 07:51 AM


Amit> "yahoo\;google.oc":
Amit> echo testing strange filenames
Amit>
Amit> You can use special characters in target names by immediately precedin
g
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





[ Post a follow-up to this message ]



    Re: semicolon in Makefile target filename?  
Dirk Gouders


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
02-16-05 12:55 PM


> 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





[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 05:08 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register