]> matita.cs.unibo.it Git - helm.git/commitdiff
added generation of LaTeX documentation
authorStefano Zacchiroli <zack@upsilon.cc>
Mon, 3 Feb 2003 20:56:01 +0000 (20:56 +0000)
committerStefano Zacchiroli <zack@upsilon.cc>
Mon, 3 Feb 2003 20:56:01 +0000 (20:56 +0000)
helm/DEVEL/ocaml-http/Makefile
helm/DEVEL/ocaml-http/doc/latex/.cvsignore [new file with mode: 0644]

index 65624e831b4980ed3d3280652d808b52c9712035..9ddbf94732f053036090d78612c1ba58b8c6367e 100644 (file)
@@ -12,6 +12,7 @@ PUBLIC_IMPL = http_types
 OCAMLDOC_STUFF = *.mli $(patsubst %, %.ml, $(PUBLIC_IMPL))
 DOCDIR = doc/html
 DOTDIR = doc/dot
+TEXDIR = doc/latex
 DESTDIR = $(shell $(OCAMLFIND) printconf stdlib) 
 
 all: all_non_mt all_mt
@@ -21,9 +22,10 @@ opt_non_mt: http.cmxa
 all_mt: http_mt.cma
 opt_mt: http_mt.cmxa
 world: all opt
-doc: dot $(OCAMLDOC_STUFF)
+doc: $(DOTDIR)/ocaml-http.ps $(TEXDIR)/ocaml-http.tex $(OCAMLDOC_STUFF)
        $(OCAMLDOC) -html -d $(DOCDIR) $(OCAMLDOC_STUFF)
-dot: $(DOTDIR)/ocaml-http.ps
+$(TEXDIR)/ocaml-http.tex: $(OCAMLDOC_STUFF)
+       $(OCAMLDOC) -latex -o $@ $^
 $(DOTDIR)/ocaml-http.ps: $(DOTDIR)/ocaml-http.dot
        $(DOT) -Tps $< > $@
 $(DOTDIR)/ocaml-http.dot: *.ml *.mli
@@ -81,7 +83,10 @@ clean:
        done
        rm -f {mt,non_mt}/$(THREADED_SRV).mli
 docclean:
-       rm -f $(DOCDIR)/*.html $(DOCDIR)/*.css $(DOTDIR)/*.dot $(DOTDIR)/*.ps
+       rm -f   \
+               $(DOCDIR)/*.html $(DOCDIR)/*.css        \
+               $(DOTDIR)/*.dot $(DOTDIR)/*.ps  \
+               $(TEXDIR)/*.tex
 distclean: clean docclean
        $(MAKE) -C examples/ distclean
        rm -f META
@@ -115,5 +120,5 @@ install: META
 .PHONY:        \
        all opt world all_non_mt all_mt opt_non_mt opt_mt       \
        examples examples.opt depend clean distclean dist       \
-       install meta doc deb distreal distrm dot
+       install meta doc deb distreal distrm
 
diff --git a/helm/DEVEL/ocaml-http/doc/latex/.cvsignore b/helm/DEVEL/ocaml-http/doc/latex/.cvsignore
new file mode 100644 (file)
index 0000000..01564af
--- /dev/null
@@ -0,0 +1 @@
+*.tex