aboutsummaryrefslogtreecommitdiff
path: root/src/tls
diff options
context:
space:
mode:
authorBadlop <badlop@process-one.net>2009-10-23 15:14:08 +0000
committerBadlop <badlop@process-one.net>2009-10-23 15:14:08 +0000
commit98f79f0c47372b1774e7510bef0b2b8c1cdd89a7 (patch)
tree8499a912be2653ed3548fc0d26ca738ebbea9128 /src/tls
parentUpdate stylesheet (diff)
Add devdoc support to Makefiles
SVN Revision: 2704
Diffstat (limited to 'src/tls')
-rw-r--r--src/tls/Makefile.in20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/tls/Makefile.in b/src/tls/Makefile.in
index 44142fa7e..855ead584 100644
--- a/src/tls/Makefile.in
+++ b/src/tls/Makefile.in
@@ -62,3 +62,23 @@ distclean: clean
TAGS:
etags *.erl
+
+
+DEVDOCDIR=../../doc/devdoc
+DDTDIR=..
+HTMLS = $(SOURCES:%.erl=../../doc/devdoc/%.html)
+ERLHTMLS = $(SOURCES:%.erl=../../doc/devdoc/%.erl.html)
+SVGS = $(SOURCES:%.erl=../../doc/devdoc/%.svg)
+
+devdoc: $(HTMLS) $(ERLHTMLS) $(SVGS)
+
+$(DEVDOCDIR)/%.erl.html: %.erl
+ @ERL@ -noshell -pa $(DEVDOCDIR) -run escobar_run file $< $(DDTDIR) -s init stop
+
+$(DEVDOCDIR)/%.html: %.erl
+ @ERL@ -noshell -run edoc_run file $< \
+ '[{dir,"$(DDTDIR)"},{packages,false},{todo,true},{private,true},{def,{vsn,"$(VSN)"}},{stylesheet,"process-one.css"},{overview,"overview.edoc"}]' -s init stop
+
+$(DEVDOCDIR)/%.svg: %.erl
+ @ERL@ -noshell -pa $(DEVDOCDIR) -run funrelg dir $< $(DDTDIR) -s init stop
+