diff Makefile @ 306:a419a60e5ff6

Started revising Intro
author Adam Chlipala <adam@chlipala.net>
date Thu, 25 Aug 2011 11:46:56 -0400
parents 690796f4690d
children d2cb78f54454
line wrap: on
line diff
--- a/Makefile	Wed Aug 03 10:34:53 2011 -0400
+++ b/Makefile	Thu Aug 25 11:46:56 2011 -0400
@@ -9,7 +9,7 @@
 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 @@
 	$(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 @@
 		-d ../html
 	cp src/toc.html html/
 
-dvi:
-	xdvi latex/cpdt
-
 templates: $(TEMPLATES)
 
 templates/%.v: src/%.v tools/make_template.ml