aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/edoc.mk
diff options
context:
space:
mode:
authorViktor Söderqvist <[email protected]>2015-01-10 17:09:35 +0100
committerViktor Söderqvist <[email protected]>2015-01-10 17:09:35 +0100
commitddca43cbb6b0ec3d2110a59a1571f9522e3b8e9c (patch)
treee5451373a296110edf5a5be4f22eb107aa665818 /plugins/edoc.mk
parent7f1f97aef8b6e34f9641705dd4e2e556afb9e78f (diff)
downloaderlang.mk-ddca43cbb6b0ec3d2110a59a1571f9522e3b8e9c.tar.gz
erlang.mk-ddca43cbb6b0ec3d2110a59a1571f9522e3b8e9c.tar.bz2
erlang.mk-ddca43cbb6b0ec3d2110a59a1571f9522e3b8e9c.zip
Adds DOC_DEPS; fixes #75
Diffstat (limited to 'plugins/edoc.mk')
-rw-r--r--plugins/edoc.mk12
1 files changed, 10 insertions, 2 deletions
diff --git a/plugins/edoc.mk b/plugins/edoc.mk
index 3f94c43..573ce05 100644
--- a/plugins/edoc.mk
+++ b/plugins/edoc.mk
@@ -1,7 +1,8 @@
# 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.
@@ -9,12 +10,19 @@ 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