Commit 6174adf9 authored by Adam Chlipala's avatar Adam Chlipala

Started revising Intro

parent ea0dc894
......@@ -9,7 +9,7 @@ VS := $(MODULES:%=src/%.v)
VS_DOC := $(MODULES_DOC:%=%.v)
TEMPLATES := $(MODULES_CODE:%=templates/%.v)
.PHONY: coq clean doc dvi html templates install cpdt.tgz
.PHONY: coq clean doc html templates install cpdt.tgz
coq: Makefile.coq
$(MAKE) -f Makefile.coq
......@@ -24,28 +24,23 @@ clean:: Makefile.coq
$(MAKE) -f Makefile.coq clean
rm -f Makefile.coq .depend cpdt.tgz \
latex/*.sty latex/cpdt.* templates/*.v
rm -f *.aux *.dvi *.log
rm -f *.aux *.log
doc: latex/cpdt.dvi latex/cpdt.pdf html
doc: latex/cpdt.pdf html
latex/cpdt.tex: Makefile $(VS)
cd src ; coqdoc --interpolate --latex -s $(VS_DOC) \
-p "\usepackage{url,amsmath,amssymb}" \
-p "\title{Certified Programming with Dependent Types}" \
-p "\author{Adam Chlipala}" \
latex/cpdt.tex: Makefile $(VS) src/BackMatter.v latex/cpdt.bib
cd src ; coqdoc --interpolate --latex -s $(VS_DOC) BackMatter.v \
-p "\usepackage{url}" \
-p "\iffalse" \
-o ../latex/cpdt.tex
latex/%.tex: src/%.v src/%.glob
cd src ; coqdoc --interpolate --latex \
-p "\usepackage{url,amsmath,amssymb}" \
-p "\usepackage{url}" \
$*.v -o ../latex/$*.tex
latex/%.dvi: latex/%.tex
cd latex ; latex $* ; latex $*
latex/%.pdf: latex/%.dvi
cd latex ; pdflatex $* ; pdflatex $*
latex/%.pdf: latex/%.tex latex/cpdt.bib
cd latex ; pdflatex $* ; pdflatex $* ; bibtex $* ; makeindex $* ; pdflatex $* ; pdflatex $*
html: Makefile $(VS) src/toc.html
mkdir -p html
......@@ -53,9 +48,6 @@ html: Makefile $(VS) src/toc.html
-d ../html
cp src/toc.html html/
dvi:
xdvi latex/cpdt
templates: $(TEMPLATES)
templates/%.v: src/%.v tools/make_template.ml
......
(** %\clearpage
\addcontentsline{toc}{chapter}{Bibliography}
\bibliographystyle{plain}
\bibliography{cpdt}
\clearpage
\addcontentsline{toc}{chapter}{Index}
\printindex% *)
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment