move to erlang.mk, remove rebar and update Makefile