aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/edoc.mk
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2015-05-07 21:00:53 +0300
committerLoïc Hoguin <[email protected]>2015-05-07 21:00:53 +0300
commit030041dc06f80371aecc929e43fdf870d1f09973 (patch)
tree91a1eb56f954f8598a679d8589a6c7c494fc15a8 /plugins/edoc.mk
parent49ffed442a9e01e79e3561da1f92f77bad1d38cd (diff)
downloaderlang.mk-030041dc06f80371aecc929e43fdf870d1f09973.tar.gz
erlang.mk-030041dc06f80371aecc929e43fdf870d1f09973.tar.bz2
erlang.mk-030041dc06f80371aecc929e43fdf870d1f09973.zip
Add Asciidoc documentation support
Diffstat (limited to 'plugins/edoc.mk')
-rw-r--r--plugins/edoc.mk14
1 files changed, 4 insertions, 10 deletions
diff --git a/plugins/edoc.mk b/plugins/edoc.mk
index d9b1d70..6f0a82d 100644
--- a/plugins/edoc.mk
+++ b/plugins/edoc.mk
@@ -1,8 +1,7 @@
# Copyright (c) 2013-2015, 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 build-doc-deps
+.PHONY: distclean-edoc edoc
# Configuration.
@@ -10,19 +9,14 @@ EDOC_OPTS ?=
# Core targets.
-docs:: distclean-edoc build-doc-deps
- $(gen_verbose) $(ERL) -eval 'edoc:application($(PROJECT), ".", [$(EDOC_OPTS)]), halt().'
+docs:: distclean-edoc edoc
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
+edoc: doc-deps
+ $(gen_verbose) $(ERL) -eval 'edoc:application($(PROJECT), ".", [$(EDOC_OPTS)]), halt().'
distclean-edoc:
$(gen_verbose) rm -f doc/*.css doc/*.html doc/*.png doc/edoc-info