blob: e662e338be671478ea81e396088c67ea4c816f5e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
LATEX = latex
PDFLATEX = pdflatex
DVIPS = dvips
BIBTEX = bibtex
SRC := $(shell egrep -l '^[^%]*\\begin\{document\}' *.tex)
DVI = $(SRC:%.tex=%.dvi)
PDF = $(SRC:%.tex=%.pdf)
PS = $(SRC:%.tex=%.ps)
all: pdf
$(DVI): %.dvi : %.tex
# call two time because of toc etc
@$(LATEX) $<
@$(LATEX) $<
$(PDF): %.pdf : %.tex
# call two time because of toc etc
@$(PDFLATEX) $<
@$(PDFLATEX) $<
dvi: $(DVI)
pdf: $(PDF)
clean:
-rm -f $(DVI) $(PDF) $(DVI:%.dvi=%.aux) $(DVI:%.dvi=%.log) $(DVI:%.dvi=%.out) $(DVI:%.dvi=%.toc) $(DVI:%.dvi=%.nav) $(DVI:%.dvi=%.snm)
-rm -f *.vrb
-rm -f include/*.aux
|