diff --git a/erlang/.gitignore b/erlang/.gitignore index 7d6d3247..0f7faad4 100644 --- a/erlang/.gitignore +++ b/erlang/.gitignore @@ -2,3 +2,4 @@ MANIFEST *.beam .omakedb* *.omc +*~ \ No newline at end of file diff --git a/erlang/OMakefile b/erlang/OMakefile index 89b1c63f..d213444a 100644 --- a/erlang/OMakefile +++ b/erlang/OMakefile @@ -30,10 +30,10 @@ # If so, define the subdirectory targets and uncomment this section. # -.DEFAULT: msgpack.beam msgpack.html +.DEFAULT: msgpack.beam msgpack.beam: msgpack.erl - erlc $< + erlc -Wall +debug_info $< msgpack.html: msgpack.erl erl -noshell -run edoc_run file $< @@ -41,5 +41,8 @@ msgpack.html: msgpack.erl test: msgpack.beam erl -noshell -s msgpack test -s init stop +edoc: msgpack.erl + erl -noshell -eval 'ok=edoc:files(["msgpack.erl"], [{dir, "edoc"}]).' -s init stop + clean: -rm -f *.beam *.html diff --git a/erlang/edoc/.gitignore b/erlang/edoc/.gitignore new file mode 100644 index 00000000..97f4246c --- /dev/null +++ b/erlang/edoc/.gitignore @@ -0,0 +1,4 @@ +*.html +*.css +*.png +edoc-info diff --git a/erlang/msgpack.erl b/erlang/msgpack.erl index aa9851da..a6974834 100644 --- a/erlang/msgpack.erl +++ b/erlang/msgpack.erl @@ -18,7 +18,7 @@ %% @doc MessagePack codec for Erlang. %% -%% APIs are almost compatible with C API +%% APIs are almost compatible with C API %% except for buffering functions (both copying and zero-copying), which are unavailable. %% %%