为了方便调试,有时候希望emake编译时将代码分别放到项目目录的ebin和release目录的ebin下,通过尝试可以这样做:用..符号的转换让同一个代码目录表现为不同的key,这样emake就会认为这是两个不同的目录
说起来有点拗口,直接看例子:
{"../oryx/src/*", [debug_info, {i, "include"}, {outdir, "ebin"}]}. {"../oryx/src/*/*", [debug_info, {i, "include"}, {outdir, "ebin"}]}. {"src/*", [debug_info, {i, "include"}, {outdir, "../rel/oryx/lib/oryx-1/ebin"}]}. {"src/*/*", [debug_info, {i, "include"}, {outdir, "../rel/oryx/lib/oryx-1/ebin"}]}.
为什么会有这种需求呢,因为我用NetBeans写erlang代码,erlybird插件是接使用Emakefile进行编译的,so...
附带吐槽一下,erlybird咋就停止更新了呢