aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfilliatr1999-09-08 14:46:10 +0000
committerfilliatr1999-09-08 14:46:10 +0000
commit8501b784748667b9738cf3c12cd20e0aec044bd1 (patch)
tree8b92e763bb70b970115fbe9ad93cf7f3f4703834
parent2d5b24c1cbbec4ab6499df7a07ce2c49a944728f (diff)
cible doc
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@63 85f007b7-540e-0410-9357-904b9bb8a0f7
-rw-r--r--Makefile13
1 files changed, 9 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 985f814114..b0f351e64f 100644
--- a/Makefile
+++ b/Makefile
@@ -50,7 +50,7 @@ OBJS=$(CONFIG) $(LIB) $(KERNEL) $(LIBRARY) $(PARSING)
# Targets
-world: minicoq coqtop dev/db_printers.cmo
+world: minicoq coqtop doc dev/db_printers.cmo
# coqtop
@@ -67,15 +67,20 @@ minicoq: $(MINICOQOBJS)
$(OCAMLC) $(INCLUDES) -o minicoq -custom $(CLIBS) $(CAMLP4OBJS) \
$(MINICOQOBJS) $(OSDEPLIBS)
+# Documentation
+
+.PHONY: doc
+
+doc: doc/coq.tex
+ make -C doc coq.ps minicoq.dvi
+
# Literate programming (with ocamlweb)
LPLIB = lib/doc.tex $(LIB:.cmo=.mli)
LPKERNEL = kernel/doc.tex $(KERNEL:.cmo=.mli)
LPLIBRARY = library/doc.tex $(LIBRARY:.cmo=.mli)
LPFILES = doc/macros.tex doc/intro.tex $(LPLIB) $(LPKERNEL) $(LPLIBRARY)
-lp: doc/coq.ps
-doc/coq.ps: doc/coq.tex
- cd doc; make coq.ps
+
doc/coq.tex: $(LPFILES)
ocamlweb -o doc/coq.tex $(LPFILES)