summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUENISHI Kota <kuenishi+github@gmail.com>2010-07-18 23:40:25 +0900
committerUENISHI Kota <kuenishi+github@gmail.com>2010-07-18 23:40:25 +0900
commit7b152640d962434192496e4d96788622d4e90886 (patch)
tree2f17772cd52bdaa1534023062a74a2b0a26d9896
parent78fddff34e517e64d993f658db7e4c693ec8cc66 (diff)
downloadmsgpack-python-7b152640d962434192496e4d96788622d4e90886.tar.gz
erlang: 'edoc' document generation
-rw-r--r--erlang/.gitignore1
-rw-r--r--erlang/OMakefile7
-rw-r--r--erlang/edoc/.gitignore4
-rw-r--r--erlang/msgpack.erl2
4 files changed, 11 insertions, 3 deletions
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 <a href="http://msgpack.org/">MessagePack</a> codec for Erlang.
%%
-%% APIs are almost compatible with <a href="http://msgpack.sourceforge.jp/c:doc">C API</a>
+%% APIs are almost compatible with <a href="http://redmine.msgpack.org/projects/msgpack/wiki/QuickStartC">C API</a>
%% except for buffering functions (both copying and zero-copying), which are unavailable.
%%
%% <table border="1">