blob: 88da447a91b05ce983c08760f4f88bb57e7c2391 (
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
rerun = "(There were undefined references|Rerun to get (cross-references|the bars) right)"
doc = pgfmanual
latex = latex
TEXINPUTS := ../../text-en:$(TEXINPUTS)
all: $(doc).ps
pgfmanual.idx:
touch pgfmanual.idx
pgfmanual.ind: pgfmanual.idx
makeindex $(doc).idx
pgfmanual.ps: $(doc).tex $(doc).ind revisionfile
TEXINPUTS="$(TEXINPUTS)" $(latex) $(doc).tex
(egrep -q $(rerun) $(doc).log && TEXINPUTS="$(TEXINPUTS)" $(latex) $(doc).tex) || true
dvips -o $(doc).ps $(doc).dvi
gs -dNOPAUSE -sDEVICE=pdfwrite -dBATCH -dCompatibilityLevel=1.4 -sOutputFile=$(doc).pdf $(doc).ps
test: $(doc)-test.tex $(doc).ind revisionfile
TEXINPUTS="$(TEXINPUTS)" $(latex) $(doc)-test.tex
(egrep -q $(rerun) $(doc).log && TEXINPUTS="$(TEXINPUTS)" $(latex) $(doc)-test.tex) || true
dvips -o $(doc)-test.ps $(doc)-test.dvi
gs -dNOPAUSE -sDEVICE=pdfwrite -dBATCH -dCompatibilityLevel=1.4 -sOutputFile=$(doc)-test.pdf $(doc)-test.ps
revisionfile:
cd ../../../../.. && ./scripts/pgf/pgfrevisionfile.sh
clean:
rm -f \
plots/* \
pgfmanual.out \
pgfmanual.log \
pgfmanual.idx \
pgfmanual.ind \
pgfmanual.ilg \
pgfmanual.pdf \
pgfmanual.toc \
pgfmanual.bbl \
pgfmanual.blg \
pgfmanual.ps \
pgfmanual.dvi \
pgfmanual*.aux
|