首先你得有个项目(项目格式:myTest/src,myTest/ebin,myTest/include等文件夹),项目下有个文件(Emakefile),内容如下:
%% -*- mode: erlang -*-
{"src/*", [debug_info, {d, ewp_debug_flag},{outdir, "ebin"},
{i, "include"}]}.
{"src/*/*", [debug_info, {d, ewp_debug_flag},
{outdir, "ebin"},
{i, "include"}]}.
{"src/*/*/*", [debug_info, {d, ewp_debug_flag},
{outdir, "ebin"},
{i, "include"}]}.
然后编译步骤:
第一种情况:在UNIX下,进入你的项目路径下(如:“/hgfs/myTest”),然后直接输入命令:erl make,注意“erl make” 中间是有空格的。
第二种情况:在UNXI下,进入erl shell 模式,即(直接在项目路径下输入:erl),然后输入命令(make:all().),注意(“make:all().”就是一个方法,后面必须有“.”)。