LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-18-2004, 11:54 AM   #1
alice95089
Member
 
Registered: Dec 2004
Location: hong kong
Posts: 44

Rep: Reputation: 15
Makefile


Hi all,
1. I would like to ask what is the meaning of $i in the following sentense i found in Makefile. why do use the $i instead of $$i?

for i in $(SUBDIRS) ; do \
( cd $$i; make) ;\
done

2. The following sentence found in Makefile
rm -f *~

I would like to ask what is the meaning of *~?
why don't just use "rm -f *" instead?

3. I woluld like to ask:
ar -cr $(LIBCOMMON) $(OBJ)
ranlib $(LIBCOMMON)

what do the above sentence meain( also found in Makefile)?

Thanks
 
Old 12-18-2004, 12:35 PM   #2
Cerulean
LQ Newbie
 
Registered: Dec 2004
Distribution: SuSE 9.1
Posts: 28

Rep: Reputation: 15
Quote:
for i in $(SUBDIRS) ; do \
( cd $$i; make) ;\
done
That interperets (sic) all the code in between the "do" and "done", each time assigning the value of the next item in $SUBDIRS to $i.

Quote:
rm -f *~

would like to ask what is the meaning of *~?
why don't just use "rm -f *" instead?
That above deletes everything ending in a ~ in the current directory - Usually back up files.
rm -f * deletes everything in the current directory.

Quote:
3. I woluld like to ask:
ar -cr $(LIBCOMMON) $(OBJ)
ranlib $(LIBCOMMON)
...
Read the man pages for ar and ranlib.
 
Old 12-19-2004, 08:14 PM   #3
alice95089
Member
 
Registered: Dec 2004
Location: hong kong
Posts: 44

Original Poster
Rep: Reputation: 15
I am not understand =)

HI,

Really thanks for you reply! =)

Alice
 
Old 12-19-2004, 08:15 PM   #4
alice95089
Member
 
Registered: Dec 2004
Location: hong kong
Posts: 44

Original Poster
Rep: Reputation: 15
I am not understand =)

HI cerulean,

Really thanks for you reply! =)

Alice
 
  


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
How to modify makefile.in or makefile.am QiangWan Linux - Newbie 1 05-17-2005 11:07 AM
how to get (makefile -f makefile )output into the textview widget in Pygtk sailu_mvn Programming 3 02-28-2005 03:57 AM
@ in makefile m_a61 Linux - General 2 09-08-2004 07:09 AM
generate Makefile from Makefile.in without calling ./configure ? chris78 Programming 2 05-02-2004 12:23 PM
makefile pessanimahi Programming 6 09-17-2003 02:34 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:32 AM.

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
Open Source Consulting | Domain Registration