update rebar.config with deps_dir = ../../deps
add erlang.mk to Makefile and use it