aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/edoc.mk
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/edoc.mk')
-rw-r--r--plugins/edoc.mk21
1 files changed, 21 insertions, 0 deletions
diff --git a/plugins/edoc.mk b/plugins/edoc.mk
new file mode 100644
index 0000000..5249d08
--- /dev/null
+++ b/plugins/edoc.mk
@@ -0,0 +1,21 @@
+# Copyright (c) 2013-2014, Loïc Hoguin <[email protected]>
+# This file is part of erlang.mk and subject to the terms of the ISC License.
+
+.PHONY: distclean-edoc
+
+# Configuration.
+
+EDOC_OPTS ?=
+
+# Core targets.
+
+docs:: distclean-edoc
+ $(gen_verbose) erl -noshell \
+ -eval 'edoc:application($(PROJECT), ".", [$(EDOC_OPTS)]), init:stop().'
+
+distclean:: distclean-edoc
+
+# Plugin-specific targets.
+
+distclean-edoc:
+ $(gen_verbose) rm -f doc/*.css doc/*.html doc/*.png doc/edoc-info