Hi SirDice,
Thanks a lot for the quick reply! I am not sure, but I think I might have to specify my question a bit more.
Currently I am not so much interested on the topic of how to use makefiles but more in how I can use make(1) with the ports tree.
So far I have been experimenting on FreeBSD and my pinnacle was the ability to install VirtualBox from the ports (including the troubleshooting and stuff). For example, when I did that, I got all kinds of errors about how some dependancies weren found or installed. What I did was install a complete gnome2 using pkg_add -r. The reason to that was that I know how long it takes for it to compile, but mainly because I have to wait and set each config option while building.
To trouble shoot these kinds of problem (automating a gnome2 build from ports and find out about dependencies for packages) are pretty easy to google on.
Things I found out are arguments liks "make search keyword=bla", "make install clean", "make config". It's exactly those kinds of arguments which I can't seem to find documentation about, unless I specificly google for them which means I have to know them.
Curious about other arguments possible with the make(1) command I started to look in the man page, but that doesn't show any of them.
Basically what I want is to find out a list with all possible arguments so I can figure out how to use them to install VirtualBox with only the dependancies it needs, and in the future other software. Instead of a full gnome2 install (did that so I was kind of sure I wouldn't miss anything for VirtualBox).