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 ?
views:
41answers:
3
+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
2010-05-21 20:31:25
I don't make makefiles, I just want to be able to download some sources and build them into an executable.
Petruza
2010-05-22 16:00:02
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
2010-05-22 16:10:46
+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
2010-05-24 09:47:57