add erlang.mk, update Makefile and remove rebar