Reputation: 35679
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/."}
]
}.
Upvotes: 9
Views: 5813
Reputation: 2706
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
Upvotes: 14
Reputation: 5412
erl -make
to compile using the Emakefileerl
. Then run the code with module_name:function_name().
(including the dot).Upvotes: 4