aboutsummaryrefslogtreecommitdiffstats
path: root/erlang.mk
diff options
context:
space:
mode:
authorAndreas Stenius <[email protected]>2013-10-09 11:10:01 +0200
committerAndreas Stenius <[email protected]>2013-11-06 14:49:28 +0100
commitacfa33561cc06e7a085420fc3381188bcd0903d2 (patch)
treeabb4bd68b95aaa34dc358e37ee6056d47512090f /erlang.mk
parent4a1942695b8aa000e22ac5533474725dc7690ec6 (diff)
downloaderlang.mk-acfa33561cc06e7a085420fc3381188bcd0903d2.tar.gz
erlang.mk-acfa33561cc06e7a085420fc3381188bcd0903d2.tar.bz2
erlang.mk-acfa33561cc06e7a085420fc3381188bcd0903d2.zip
Add EDOC_OPTS variable.
This is useful if edoc can't process the sources without using the Erlang pre processor, for instance, or to pass other custom options when building the documentation.
Diffstat (limited to 'erlang.mk')
-rw-r--r--erlang.mk4
1 files changed, 3 insertions, 1 deletions
diff --git a/erlang.mk b/erlang.mk
index d5fa2aa..9a658bc 100644
--- a/erlang.mk
+++ b/erlang.mk
@@ -189,9 +189,11 @@ clean-deps:
# Documentation.
+EDOC_OPTS ?=
+
docs: clean-docs
$(gen_verbose) erl -noshell \
- -eval 'edoc:application($(PROJECT), ".", []), init:stop().'
+ -eval 'edoc:application($(PROJECT), ".", [$(EDOC_OPTS)]), init:stop().'
clean-docs:
$(gen_verbose) rm -f doc/*.css doc/*.html doc/*.png doc/edoc-info