For Erlang specifically, you should probably use rebar (http://github.com/basho/rebar). It is pretty much the best thing ever.
A common pattern lately is to use rebar with a very minimal makefile that just makes things like "make" and "make test" do the equivalent rebar actions so that people unfamiliar with it don't even notice.