我有一个Emakefile,看起来像:
%% --
%%
%% --
{'/Users/user/projects/custom_test/trunk/*',
[debug_info,
{outdir, "/Users/user/projects/custom_test/trunk/ebin"},
{i, "/Users/user/projects/custom_test/trunk/include/."}
]
}.
Run Code Online (Sandbox Code Playgroud)
Eri*_*ric 13
1/ {"source files globbed", Options}
这里的选项是:
debug_info
为调试器添加调试信息
{outdir, "/Users/user/projects/custom_test/trunk/ebin"}
应该在哪里写入输出(.beam文件)
{i, "/Users/user/projects/custom_test/trunk/include/."}
在哪里可以找到.hrl
头文件.
2/erl -make
3/erl -pa /Users/user/projects/custom_test/trunk/ebin
开始一个shell.
找到用作应用程序入口点的模块并调用函数:
module:start().
您还可以以交互方式运行代码:
erl -noinput -noshell -pa /Users/user/projects/custom_test/trunk/ebin -s module start