aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2013-11-18 14:52:02 +0100
committerLoïc Hoguin <[email protected]>2013-11-18 14:52:02 +0100
commit25041ba7eb9aab202235afd3a98e866f66f17c5b (patch)
treeabb4bd68b95aaa34dc358e37ee6056d47512090f
parent4a1942695b8aa000e22ac5533474725dc7690ec6 (diff)
parentacfa33561cc06e7a085420fc3381188bcd0903d2 (diff)
downloaderlang.mk-25041ba7eb9aab202235afd3a98e866f66f17c5b.tar.gz
erlang.mk-25041ba7eb9aab202235afd3a98e866f66f17c5b.tar.bz2
erlang.mk-25041ba7eb9aab202235afd3a98e866f66f17c5b.zip
Merge branch 'master' of git://github.com/kaos/erlang.mk
-rw-r--r--README.md6
-rw-r--r--erlang.mk4
2 files changed, 9 insertions, 1 deletions
diff --git a/README.md b/README.md
index 00711a4..e01761b 100644
--- a/README.md
+++ b/README.md
@@ -174,6 +174,12 @@ downloaded to. It defaults to `deps`. It will be propagated into
all the subsequent make calls, allowing all dependencies to use
the same folder as expected.
+`EDOC_OPTS` allows you to specify
+[options](http://www.erlang.org/doc/man/edoc.html#run-3) to pass to
+`edoc` when building the documentation. Notice: not all options are
+documented in one place; follow the links to get to the options for
+the various operations of the documentation generation.
+
`CT_SUITES` is the list of common_test suites to run when you use
the `make tests` command. If your suite module is named `ponies_SUITE`
then you only need to put `ponies` in the list.
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