aboutsummaryrefslogtreecommitdiffstats
path: root/buch/papers/laguerre/Makefile
blob: 1ed87cc7a99da0e89515ac14e4e0f0ee6e43ef19 (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
#
# Makefile -- make file for the paper laguerre
#
# (c) 2020 Prof Dr Andreas Mueller
#
IMGFOLDER := images
PRESFOLDER := presentation

FIGURES := \
	images/targets.pdf \
	images/estimates.pgf \
	images/integrand.pgf \
	images/integrand_exp.pgf \
	images/laguerre_poly.pgf \
	images/rel_error_mirror.pgf \
	images/rel_error_range.pgf \
	images/rel_error_shifted.pgf \
	images/rel_error_simple.pgf \
	images/gammaplot.pdf

.PHONY: all
all: images presentation

.PHONY: images
images: $(FIGURES)

.PHONY: presentation
presentation: $(PRESFOLDER)/presentation.pdf

images/%.pdf images/%.pgf: scripts/%.py
	python3 $<

images/gammaplot.pdf: images/gammaplot.tex images/gammapaths.tex
	cd $(IMGFOLDER) && latexmk -quiet -pdf gammaplot.tex

$(PRESFOLDER)/%.pdf: $(PRESFOLDER)/%.tex $(FIGURES)
	cd $(PRESFOLDER) && latexmk -quiet -pdf $(<F)

.PHONY: clean
clean:
	rm $(FIGURES)
	cd $(IMGFOLDER) && 	latexmk -C
	cd $(PRESFOLDER) && latexmk -C