annotate book/Makefile @ 3:9fea5674367c

Pretty LaTeX generation
author Adam Chlipala <adamc@hcoop.net>
date Fri, 29 Aug 2008 14:24:38 -0400
parents b3f7de74d38f
children f913d32a49e4
rev   line source
adamc@3 1 MODULES_NODOC := Tactics
adamc@3 2 MODULES_DOC := StackMachine
adamc@3 3 MODULES := $(MODULES_NODOC) $(MODULES_DOC)
adamc@3 4 VS := $(MODULES:%=src/%.v)
adamc@3 5 VS_DOC := $(MODULES_DOC:%=%.v)
adamc@3 6 GLOBALS := .coq_globals
adamc@2 7
adamc@3 8 .PHONY: coq clean doc
adamc@2 9
adamc@2 10 coq: Makefile.coq
adamc@2 11 make -f Makefile.coq
adamc@2 12
adamc@2 13 Makefile.coq: Makefile $(VS)
adamc@2 14 coq_makefile $(VS) \
adamc@3 15 COQC = "coqc -I src -impredicative-set \
adamc@3 16 -dump-glob $(GLOBALS)" \
adamc@2 17 -o Makefile.coq
adamc@2 18
adamc@2 19 clean:: Makefile.coq
adamc@2 20 make -f Makefile.coq clean
adamc@3 21 rm -f Makefile.coq .depend $(GLOBALS) \
adamc@3 22 latex/*.sty latex/cpdt.*
adamc@3 23
adamc@3 24 doc: latex/cpdt.dvi
adamc@3 25
adamc@3 26 latex/cpdt.tex: $(VS)
adamc@3 27 cd src ; coqdoc --latex $(VS_DOC) \
adamc@3 28 -o ../latex/cpdt.tex
adamc@3 29
adamc@3 30 latex/cpdt.dvi: latex/cpdt.tex
adamc@3 31 cd latex ; latex cpdt