Generic Makefile for building Erlang applications