ifeq expression
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 Shell > ifeq expression




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

    ifeq expression  
Gary Wessle


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


 
01-25-07 12:19 AM


hi

ifeq ($(ARCH),SunOS)

does the above expression mean that if the variable ARCH has the
string "SunOS" in it then return true?

thanks





[ Post a follow-up to this message ]



    Re: ifeq expression  
clarkbt36@optonline.net


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


 
01-25-07 12:19 AM



On Jan 24, 5:55 pm, Gary Wessle <phd...@yahoo.com> wrote:
> hi
>
> ifeq ($(ARCH),SunOS)
>
> does the above expression mean that if the variable ARCH has the
> string "SunOS" in it then return true?
>
> thanks

Assuming this is an excerpt from a GNU make makefile, which it
certainly looks like, you are right. It does compare the value of the
string inside the ARCH macro variable with the string SunOS. It does
not return true, however, but simply executes whatever command follows
the "ifeq ($(ARCH), SunOS) line and comes before the next endif command.






[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 02:09 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