From 7b152640d962434192496e4d96788622d4e90886 Mon Sep 17 00:00:00 2001 From: UENISHI Kota Date: Sun, 18 Jul 2010 23:40:25 +0900 Subject: [PATCH] erlang: 'edoc' document generation --- erlang/.gitignore | 1 + erlang/OMakefile | 7 +++++-- erlang/edoc/.gitignore | 4 ++++ erlang/msgpack.erl | 2 +- 4 files changed, 11 insertions(+), 3 deletions(-) create mode 100644 erlang/edoc/.gitignore diff --git a/erlang/.gitignore b/erlang/.gitignore index 7d6d324..0f7faad 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 89b1c63..d213444 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 0000000..97f4246 --- /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 aa9851d..a697483 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. %% %%