make.erl functions to generate edoc

Mickael Remond mickael.remond@REDACTED
Tue Apr 4 18:45:35 CEST 2006


Hello,

Here is make.erl functions we have added to easily generate edoc
documentation on the file listed in an Emakefile:

doc() ->
    doc("doc").
doc(DocPath) ->
    {ok, Makefiles} = file:consult("Emakefile"),
    Files = lists:map(fun({F, _Opts}) -> F end, Makefiles),
    edoc:files(Files, [{dir,DocPath}]).

We generate the doc with the following command:
erl -noshell -s make doc -s init stop

Maybe it will be usefull to someone else. 

Cheers,

-- 
Mickaël Rémond
 http://www.process-one.net/



More information about the erlang-patches mailing list