aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/edoc.mk
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/edoc.mk')
-rw-r--r--plugins/edoc.mk11
1 files changed, 6 insertions, 5 deletions
diff --git a/plugins/edoc.mk b/plugins/edoc.mk
index 5249d08..6f0a82d 100644
--- a/plugins/edoc.mk
+++ b/plugins/edoc.mk
@@ -1,7 +1,7 @@
-# Copyright (c) 2013-2014, Loïc Hoguin <[email protected]>
+# Copyright (c) 2013-2015, Loïc Hoguin <[email protected]>
# This file is part of erlang.mk and subject to the terms of the ISC License.
-.PHONY: distclean-edoc
+.PHONY: distclean-edoc edoc
# Configuration.
@@ -9,13 +9,14 @@ EDOC_OPTS ?=
# Core targets.
-docs:: distclean-edoc
- $(gen_verbose) erl -noshell \
- -eval 'edoc:application($(PROJECT), ".", [$(EDOC_OPTS)]), init:stop().'
+docs:: distclean-edoc edoc
distclean:: distclean-edoc
# Plugin-specific targets.
+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