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 |
|
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" |
This is where I learned makefiles from: http://www.opussoftware.com/tutorial/TutMakefile.htm
I generally use autoconf nowadays though |
I think using this command will give you some full reference of make and examples : info make Goodluck Seyed Ehsan Hosseini |
Quote:
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 |
Quote:
Also, in the commands of the makefile-rules, you can use shell commands including "test", "if" and the like. |
All times are GMT -5. The time now is 02:22 PM. |