tags:

views:

41

answers:

3

Hi, I'm new to *N*X OSes, actually MacOS, and when I try to build sources with make and makefiles, I never can.
I try to run make, even try to run it passing the makefile as an argument, but all I get is "There's nothing for make to do"
Can you point me to a tutorial, reference, or something ?

+1  A: 

Here is a tutorial to help you get started.

Just remember to use tabs instead of spaces when indenting lines in the makefile :)

Justin Ethier
I don't make makefiles, I just want to be able to download some sources and build them into an executable.
Petruza
OK. Do you have an example of a piece of software that you are having trouble with? Normally there are instructions in a README.txt or something. And often you have to run ./configure *before* you run make.
Justin Ethier
+1  A: 

This one is excellent.

(You can also read some criticism to round your knowledge.)

(If after reading these, you want to try cmake, then you want to go here. It works perfectly on Mac OS X.)

ivo
+1  A: 

Generally if you're trying to install from a tarball there will be a file named README or INSTALL with installation instructions. Usually all you have to do is run from the terminal

./configure
make
sudo make install

It's generally possible to set options for compilation by adding flags to ./configure, to see what they are run

./configure --help
Scott Wales