LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 07-31-2012, 02:27 AM   #1
girish.chegu
LQ Newbie
 
Registered: Jul 2012
Posts: 1

Rep: Reputation: Disabled
Question Creating MakeFiles and dependencies


HI friends,
i have a small doubt..please help me in this context.
while i tried to read a makefile which is written by my collegues under solaris and my work is to convert into linux makefile.
in this make file a dependent file is there in which i found these lines. can anyone help me to understand these following lines.....

MACHINE=
[ -f /usr/bin/mach ] && MACHINE=$`/usr/bin/mach`
[ -f /usr/bin/machine ] && MACHINE=$`/usr/bin/machine`
[ -f /bin/machine ] && MACHINE=$`/bin/machine`
 
Old 07-31-2012, 02:34 AM   #2
414N
Member
 
Registered: Sep 2011
Location: Italy
Distribution: Slackware
Posts: 635

Rep: Reputation: 186Reputation: 186
They are tests like "if X then Y".
Depending on where the "mach" or "machine" executable is found the MACHINE variable is set accordingly.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Creating a .deb package... how to get all dependencies? Geminias Linux - Software 2 02-08-2012 02:38 PM
creating rpm to install also dependencies files required. jayasekar Linux - Software 1 12-03-2009 06:49 AM
Creating driver files from Makefiles bluseychris Linux - Software 3 05-04-2004 06:42 PM
Creating makefiles and using gcc???? darkone66669 Linux - Software 3 03-21-2004 06:23 PM
Using Kdevelop to creating makefiles StressedLemming Linux - Software 0 11-30-2003 06:08 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 07:04 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration