Makefile 705 Bytes
Newer Older
Alvarez, Gonzalo's avatar
Alvarez, Gonzalo committed
1
2
3
4
CPPFLAGS = -I../src \
	   -I../src/Geometry
CXX = g++

Alvarez, Gonzalo's avatar
Alvarez, Gonzalo committed
5
all: manual.pdf tutorial.pdf
Alvarez, Gonzalo's avatar
Alvarez, Gonzalo committed
6

7
manual.tex: manual.ptex ../scripts/doc.pl
Alvarez, Gonzalo's avatar
Alvarez, Gonzalo committed
8
9
10
	find ../src -iname "*.h" -or -iname "*.cpp" |\
              perl ../scripts/doc.pl manual.ptex

11
tutorial.tex: tutorial.ptex ../src/*h ../drivers/*cpp ../scripts/doc.pl
Alvarez, Gonzalo's avatar
Alvarez, Gonzalo committed
12
13
14
	find ../src ../drivers -iname "*.h" -or -iname "*.cpp" |\
perl ../scripts/doc.pl tutorial.ptex

Alvarez, Gonzalo's avatar
Alvarez, Gonzalo committed
15
16
manual.pdf: manual.tex
	pdflatex manual.tex
Alvarez, Gonzalo's avatar
Alvarez, Gonzalo committed
17
#	bibtex manual.aux
Alvarez, Gonzalo's avatar
Alvarez, Gonzalo committed
18
19
20
	pdflatex manual.tex
	pdflatex manual.tex

Alvarez, Gonzalo's avatar
Alvarez, Gonzalo committed
21
22
23
24
25
26
tutorial.pdf: tutorial.tex
	pdflatex tutorial.tex
#	bibtex tutorial.tex
	pdflatex tutorial.tex
	pdflatex tutorial.tex

Alvarez, Gonzalo's avatar
Alvarez, Gonzalo committed
27
28
clean:
	rm -f ../README.tex
Alvarez, Gonzalo's avatar
Alvarez, Gonzalo committed
29
	rm -f manual.pdf manual.tex tutorial.pdf tutorial.tex
Alvarez, Gonzalo's avatar
Alvarez, Gonzalo committed
30
31