Erlang emakefile解释
我有一个 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/."}
]
}.
- What is anterpretation in 外行术语列表中每个项目的作用是什么?
- 如何运行 emakefile 以便能够编译它?
- 编译后,如何运行生成的 BEAM 文件?
I have an Emakefile that looks like:
%% --
%%
%% --
{'/Users/user/projects/custom_test/trunk/*',
[debug_info,
{outdir, "/Users/user/projects/custom_test/trunk/ebin"},
{i, "/Users/user/projects/custom_test/trunk/include/."}
]
}.
- What is an explanation in layman's terms for what each item does in the list?
- How do I run the emakefile so that I am able to compile it?
- After compilation, how do I run that generated BEAM file?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
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
1/
{"source files globbed", Options}
Here the options are :
debug_info
add debug info for the debugger{outdir, "/Users/user/projects/custom_test/trunk/ebin"}
where should the output be written (the .beam files){i, "/Users/user/projects/custom_test/trunk/include/."}
where to find the.hrl
header files.2/
erl -make
3/
erl -pa /Users/user/projects/custom_test/trunk/ebin
starts a shell.Find the module serving as an entry point in your application and call the functions :
module:start().
You can also run the code non interactively :
erl -noinput -noshell -pa /Users/user/projects/custom_test/trunk/ebin -s module start
erl -make
使用 Emakefile 进行编译erl
在与 Beam 文件相同的目录中启动一个 erlang shell。然后使用module_name:function_name().
(包括点)运行代码。erl -make
to compile using the Emakefileerl
. Then run the code withmodule_name:function_name().
(including the dot).