Automake :p which is commonly used in most linux app distributions but it gives a bit more work than a Makefile but better results http://www.gnu.org/software/automake/
http://www.openismus.com/documents/linux/automake/automake.shtml <-- nice explanation on how to use automake and autoconf