extend/erlang.mk — pull request #69 by jtmoulia (2014-06-11 20:25:55+00:00)
Title: Fix setting `RELX_OUTPUT_DIR` from `RELX_OPTS` implicitly

Example: setting `RELX_OPTS = --dev-mode` causes erlang.mk to try and use `--dev-mode` as the relx output directory.

This fix is imperfect: it only works if `-o $DIR` are the first args in `RELX_OPTS`. It does not implicitly set the `RELX_OUTPUT_DIR` when there is an arg other than `-o`, e.g. `--dev-mode`, leading `RELX_OPTS`. Not sure how to pick out the argument following `-o` in make.

Also, I rebuilt `erlang.mk`, but there were differences outside of my changes so I decided to leave it out of the commit. Should the updated `erlang.mk` file be part of this commit?