add makefile and rebar escript