I have Erlang/OTP cloned into ~/local/otp and I have my PATH setup with ~/local/otp-install/bin at the front, so I can quickly test out full installs locally.
You can change the INTERESTING_TARGETS variable to point to whatever other flavors you're interested in building.
You may need to set ERL_TOP to pwd: