4、Erlang的重要命令 erl -make
这条命令的执行,要求同一目录中有文件Emakefile,它规定了make的具体任务:
% Compile Nitrogen Files (assuming Nitrogen root is the parent directory.)
{ '../src/*', [
{ i, "../include" },
{ outdir, "../ebin" },
debug_info
]}.
{ '../src/*/*', [
{ i, "../include" },
{ outdir, "../ebin" },
debug_info
]}.
{ '../src/*/*/*', [
{ i, "../include" },
{ outdir, "../ebin" },
debug_info
]}.
% Compile Quickstart files.
{ './src/*', [
{ i, "./include" },
{ i, "../include" },
{ outdir, "./ebin" },
debug_info
]}.
{ './src/*/*', [
{ i, "./include" },
{ i, "../include" },
{ outdir, "./ebin" },
debug_info
]}.
从文件Emakefile中,可以推测出以下几点:
(1). 网站项目Quikstart2必须保存在Nitrogen目录内;
(2). Quikstart2中,至少有文件Emakefile,以便编译更新网站项目;
(3). 网站项目Quikstart2必须有以下子目录:app, ebin, include, src, wwwroot。