LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 07-10-2005, 06:59 AM   #1
cb951303
Member
 
Registered: Jan 2004
Distribution: Slackware 11 + Dropline Gnome 2.16
Posts: 194

Rep: Reputation: 30
where is Makefile docs??


hi guys, I was wondering, where can I find some papers about preparing my own Makefiles??

and also, if u know how to check if a directory exists, pls let me know
 
Old 07-10-2005, 10:19 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
there's shedloads of docs on google:

http://www.google.com/search?q=makefile+howto
 
Old 07-10-2005, 02:04 PM   #3
cb951303
Member
 
Registered: Jan 2004
Distribution: Slackware 11 + Dropline Gnome 2.16
Posts: 194

Original Poster
Rep: Reputation: 30
ah you're so smart, how didn't I think of google,

unfortunatly, after looking 20000 site listed in google, I found exactly nothing about how can I use "conditions" like "if"
 
Old 07-10-2005, 02:17 PM   #4
lowpro2k3
Member
 
Registered: Oct 2003
Location: Canada
Distribution: Slackware
Posts: 340

Rep: Reputation: 30
This is where I learned makefiles from: http://www.opussoftware.com/tutorial/TutMakefile.htm

I generally use autoconf nowadays though
 
Old 07-11-2005, 01:12 PM   #5
serhosseini
LQ Newbie
 
Registered: Mar 2005
Posts: 2

Rep: Reputation: 0


I think using this command will give you some full reference of make and examples :

info make

Goodluck

Seyed Ehsan Hosseini
 
Old 07-11-2005, 04:09 PM   #6
jonaskoelker
Senior Member
 
Registered: Jul 2004
Location: Denmark
Distribution: Ubuntu, Debian
Posts: 1,524

Rep: Reputation: 47
Quote:
Code:
$ info make
Which should be the official GNU make manual:
http://www.gnu.org/software/make/manual/make.html

My best advice: find a simple, handwritten makefile somewhere and use it as a `case study' in addition to the manual. And *do* experiment--learning by doing is your friend.

You can find the makefile to my old webpage(*) on http://jonaskoelker.homeunix.org/example.tgz -- for a short period. I wouldn't call it `simple', though.

(*) I used make to automagically do xslt-processing of xml-files. I have now moved over to using a DB (in order to learn *that* too ).

hth --Jonas
 
Old 07-12-2005, 08:33 AM   #7
Hko
Senior Member
 
Registered: Aug 2002
Location: Groningen, The Netherlands
Distribution: Debian
Posts: 2,536

Rep: Reputation: 111Reputation: 111
Quote:
Originally posted by cb951303
unfortunatly, after looking 20000 site listed in google, I found exactly nothing about how can I use "conditions" like "if"
"make" has its own conditionals. They are explained in its info page. Type "info make conditionals" to go to that section directly.

Also, in the commands of the makefile-rules, you can use shell commands including "test", "if" and the like.
 
  


Reply



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
Docs, HOw-Tos Drunkalot Linux From Scratch 3 09-02-2004 05:04 AM
generate Makefile from Makefile.in without calling ./configure ? chris78 Programming 2 05-02-2004 12:23 PM
bind docs Spaz17 Linux - Software 1 08-14-2003 01:52 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 06:28 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
Open Source Consulting | Domain Registration