adding rebar to Makefile and fleshing out targets