aboutsummaryrefslogtreecommitdiffstats
path: root/erlang.mk
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2015-01-12 16:35:50 +0100
committerLoïc Hoguin <[email protected]>2015-01-12 16:35:50 +0100
commit2f177ad17364994db5165336a07e1bca52efe2e0 (patch)
tree5125f601326d66b743c9ff718d63b174a632521e /erlang.mk
parentca2911d303ddab7ebfe52b76a137b04de0866703 (diff)
parentddca43cbb6b0ec3d2110a59a1571f9522e3b8e9c (diff)
downloaderlang.mk-2f177ad17364994db5165336a07e1bca52efe2e0.tar.gz
erlang.mk-2f177ad17364994db5165336a07e1bca52efe2e0.tar.bz2
erlang.mk-2f177ad17364994db5165336a07e1bca52efe2e0.zip
Merge branch 'doc-deps' of https://github.com/zuiderkwast/erlang.mk
Diffstat (limited to 'erlang.mk')
-rw-r--r--erlang.mk12
1 files changed, 10 insertions, 2 deletions
diff --git a/erlang.mk b/erlang.mk
index 5ac12d8..6faa659 100644
--- a/erlang.mk
+++ b/erlang.mk
@@ -947,9 +947,10 @@ endif
@dialyzer --no_native $(DIALYZER_DIRS) $(DIALYZER_OPTS)
# Copyright (c) 2013-2014, Loïc Hoguin <[email protected]>
+# Copyright (c) 2015, Viktor Söderqvist <[email protected]>
# This file is part of erlang.mk and subject to the terms of the ISC License.
-.PHONY: distclean-edoc
+.PHONY: distclean-edoc build-doc-deps
# Configuration.
@@ -957,13 +958,20 @@ EDOC_OPTS ?=
# Core targets.
-docs:: distclean-edoc
+docs:: distclean-edoc build-doc-deps
$(gen_verbose) $(ERL) -eval 'edoc:application($(PROJECT), ".", [$(EDOC_OPTS)]), halt().'
distclean:: distclean-edoc
# Plugin-specific targets.
+DOC_DEPS_DIRS = $(addprefix $(DEPS_DIR)/,$(DOC_DEPS))
+
+$(foreach dep,$(DOC_DEPS),$(eval $(call dep_target,$(dep))))
+
+build-doc-deps: $(DOC_DEPS_DIRS)
+ @for dep in $(DOC_DEPS_DIRS) ; do $(MAKE) -C $$dep; done
+
distclean-edoc:
$(gen_verbose) rm -f doc/*.css doc/*.html doc/*.png doc/edoc-info