Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 22nd April 2008, 09:39 PM
daviddoria Offline
Registered User
 
Join Date: Oct 2007
Posts: 884
% in makefile

There is a section in a makefile I have

%.o: %.cpp %.h
g++ -g -c $<

I can't seem to find anything about what the % is? can someone explain this or point me to a tutorial that explains it? Or at least tell me what its called so I can search better?

Thanks!

Dave
Reply With Quote
  #2  
Old 23rd April 2008, 12:14 AM
dshaw256 Offline
Registered User
 
Join Date: Mar 2006
Location: Virginia
Age: 59
Posts: 246
I'm not all that knowledgable on make myself, but its position screams "wild card" to me.
__________________
Dave Shaw
Registered Linux user #412525
Dell Latitude D610 / FC13
dshaw256@centurylink.net

no problem is so bad that a moron with root can't make it much worse
Reply With Quote
  #3  
Old 23rd April 2008, 01:09 AM
majikthise's Avatar
majikthise Offline
Registered User
 
Join Date: Apr 2008
Location: everywhere & nowhere
Posts: 749
Try this.
http://www.student.cs.uwaterloo.ca/~...make/tutorial/
__________________
HP dv5000 1.8GHz F9......Apple G4 500MHz F8 (dev-box)......ASRock 2x 1.8GHz CentOS 5.2
Reply With Quote
  #4  
Old 23rd April 2008, 01:37 AM
stevea's Avatar
stevea Offline
Registered User
 
Join Date: Apr 2006
Location: Ohio, USA
Posts: 8,304
How about RTFM ?

"info make" and select "*Pattern Rules::"
The details are abundant.. See details on "%" but also $@, #%, $<, $?, $^ .


I find the "man" vs "info" dichotomy annoying but till the future - learn both.
Reply With Quote
Reply

Tags
makefile

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Makefile saicharantej Using Fedora 1 18th April 2008 02:24 PM
Makefile??? bradley Using Fedora 15 23rd January 2008 11:12 AM
making the makefile redwagon76 Using Fedora 2 29th August 2007 03:01 PM
Makefile??? disasterpiece12 Hardware & Laptops 1 20th July 2006 08:58 AM
Makefile Elbryan Using Fedora 13 11th January 2006 04:45 PM


Current GMT-time: 08:19 (Sunday, 26-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat