3 # Generic makefile for latex
5 # Author: Stefano Zacchiroli <zack@bononia.it>
7 # Created: Sun, 29 Jun 2003 12:00:55 +0200 zack
8 # Last-Modified: Mon, 10 Oct 2005 15:37:12 +0200 zack
11 ########################################################################
13 # list of .tex _main_ files
16 # number of runs of latex (for table of contents, list of figures, ...)
22 # would you like to use pdflatex?
23 PDF_VIA_PDFLATEX = yes
25 # which formats generated by default ("all" target)?
26 # (others will be generated by "world" target)
27 # see AVAILABLE_FORMATS below
28 BUILD_FORMATS = dvi ps
30 # which format to be shown on "make show"
33 ########################################################################
35 libraries.ps: libraries.dot
36 dot -Gclusterrank=none -Tps -o $@ $<
37 librariesCluster.ps: libraries.dot
39 matita2.dvi: libraries.ps librariesCluster.ps
41 ########################################################################
43 AVAILABLE_FORMATS = dvi ps ps.gz pdf html
60 ALL_FORMATS = $(BUILD_FORMATS)
61 WORLD_FORMATS = $(AVAILABLE_FORMATS)
64 world: $(WORLD_FORMATS)
66 DVIS = $(TEXS:.tex=.dvi)
67 PSS = $(TEXS:.tex=.ps)
68 PSGZS = $(TEXS:.tex=.ps.gz)
69 PDFS = $(TEXS:.tex=.pdf)
70 HTMLS = $(TEXS:.tex=.html)
78 show: show$(SHOW_FORMAT)
96 $(TEXS:.tex=.dvi) $(TEXS:.tex=.ps) $(TEXS:.tex=.ps.gz) \
97 $(TEXS:.tex=.pdf) $(TEXS:.tex=.aux) $(TEXS:.tex=.log) \
98 $(TEXS:.tex=.html) $(TEXS:.tex=.out) $(TEXS:.tex=.haux) \
99 $(TEXS:.tex=.htoc) $(TEXS:.tex=.tmp)
103 if [ "$(BIBTEX)" = "yes" ]; then $(BIBTEX) $*; fi
104 if [ "$(RUNS)" -gt 1 ]; then \
105 for i in seq 1 `expr $(RUNS) - 1`; do \
109 ifeq ($(PDF_VIA_PDFLATEX),yes)
112 if [ "$(BIBTEX)" = "yes" ]; then $(BIBTEX) $*; fi
113 if [ "$(RUNS)" -gt 1 ]; then \
114 for i in seq 1 `expr $(RUNS) - 1`; do \
129 .PHONY: all ps pdf html clean
131 ########################################################################