edoc_run
Interface for calling EDoc from Erlang startup options.
Interface for calling EDoc from Erlang startup options.
The following is an example of typical usage in a Makefile:
docs: erl -noshell -run edoc_run application "'$(APP_NAME)'" \ '"."' '[{def,{vsn,"$(VSN)"}}]'
(note the single-quotes to avoid shell expansion, and the double-quotes enclosing the strings).
New feature in version 0.6.9: It is no longer
necessary to write -s init stop
last on the command line in order
to make the execution terminate. The termination (signalling success
or failure to the operating system) is now built into these
functions.
Functions
application(Args::[string()]) -> none()
Calls [App]
, [App, Options]
or [App,
Dir, Options]
. In the first case
The function call never returns; instead, the emulator is automatically terminated when the call has completed, signalling success or failure to the operating system.
files(Args::[string()]) -> none()
Calls [Files]
or [Files, Options]
. In the first case,
The function call never returns; instead, the emulator is automatically terminated when the call has completed, signalling success or failure to the operating system.
packages(Args::[string()]) -> none()
Calls [Packages]
or [Packages, Options]
.
In the first case
The function call never returns; instead, the emulator is automatically terminated when the call has completed, signalling success or failure to the operating system.
file(Args::[string()]) -> none()
This function is deprecated: This is part of the old interface to EDoc and is mainly kept for backwards compatibility. The preferred way of generating documentation is through one of the functions application/1, packages/1 and files/1.
Calls [File]
or [File, Options]
. In the first case, an empty
list of options is passed to
The following is an example of typical usage in a Makefile:
$(DOCDIR)/%.html:%.erl erl -noshell -run edoc_run file '"$<"' '[{dir,"$(DOCDIR)"}]' \ -s init stop
The function call never returns; instead, the emulator is automatically terminated when the call has completed, signalling success or failure to the operating system.