From 26c0a41c43c9e7394e599ff385c446ce95c474f4 Mon Sep 17 00:00:00 2001 From: Stefano Zacchiroli Date: Mon, 3 Feb 2003 20:56:01 +0000 Subject: [PATCH] added generation of LaTeX documentation --- helm/DEVEL/ocaml-http/Makefile | 13 +++++++++---- helm/DEVEL/ocaml-http/doc/latex/.cvsignore | 1 + 2 files changed, 10 insertions(+), 4 deletions(-) create mode 100644 helm/DEVEL/ocaml-http/doc/latex/.cvsignore diff --git a/helm/DEVEL/ocaml-http/Makefile b/helm/DEVEL/ocaml-http/Makefile index 65624e831..9ddbf9473 100644 --- a/helm/DEVEL/ocaml-http/Makefile +++ b/helm/DEVEL/ocaml-http/Makefile @@ -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 index 000000000..01564af35 --- /dev/null +++ b/helm/DEVEL/ocaml-http/doc/latex/.cvsignore @@ -0,0 +1 @@ +*.tex -- 2.39.2