1# RegMath, math libraries for Regina
2# Copyright 1998-2001 Patrick TJ McPhee
3# Distributed under the terms of the Mozilla Public Licence
4# You can obtain a copy of the licence at http://www.mozilla.org/MPL
5# The Original Code is regmath
6# The Initial Developer is Patrick TJ McPhee
7# $Header: C:/ptjm/rexx/math/tmp/RCS/Makefile.doc 1.2 2001/11/04 19:06:24 ptjm Exp $
8
9# this makefile produces the .pdf documentation. It requires pdflatex
10# (v.14g or later), metapost, and ghostscript (v6.5 or later for best results)
11
12
13# need to do this three times to get congruence
14regmath.pdf : regmath.tex rat.pdf sincos.pdf exp.pdf
15	-makeindex regmath
16	pdflatex regmath
17	makeindex regmath
18	pdflatex regmath
19	makeindex regmath
20	pdflatex regmath
21
22# note that the -g setting is taken from the bounding box of regmath.1 (i.e., may
23# change on each run)
24rat.pdf : regmath.1
25	gs -sDEVICE=pdfwrite -sOutputFile=rat.pdf -r720 -g3060x830 -dNOPAUSE -dBATCH -- regmath.1
26
27sincos.pdf : regmath.2
28	gs -sDEVICE=pdfwrite -sOutputFile=sincos.pdf -r720 -g3860x1100 -dNOPAUSE -dBATCH -- regmath.2
29
30exp.pdf : regmath.3
31	gs -sDEVICE=pdfwrite -sOutputFile=exp.pdf -r720 -g2340x2250 -dNOPAUSE -dBATCH -- regmath.3
32
33regmath.1 regmath.2 regmath.3 : regmath.mp
34	mpost regmath
35
36clean :
37	-rm regmath.1 regmath.2 regmath.3 *.pdf *.log *.aux *.idx *.ilg *.ind *.toc regmath.out
38