When compiling an erlang file with erlc
I can add additional include directories like so:
erlc -I /home/trotter/code/open-source/yaws/include src/myapp.erl
When I'm compiling from within erl
though, I don't see a way to do this on the command line. Instead, I have to do the following within the repl:
> compile:file("src/myapp",
[verbose,
report_errors,
{i,"/home/trotter/code/open-source/yaws/include"}]).
Is there a better way to do this that I don't know about, such as passing some command line argument to erl? If not, any suggestions for drying this up that don't require me to type nasty paths everytime I compile.