aboutsummaryrefslogtreecommitdiff
path: root/Makefile
blob: 292b0573f40ba7efbb248dd74a92512fc4182406 (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
#SOURCES=linear.tex ratios.tex dataprocessing.tex
NORMAL=-pdf -silent
SHOW_ANSWERS=-silent -pdf -pdflatex="pdflatex --synctex=1 %O '\def\showanswers{1} \input { %S }'"

all: linear.pdf linear-answers.pdf ratios.pdf ratios-answers.pdf dataprocessing.pdf dataprocessing-answers.pdf

linear.pdf: linear.tex
	latexmk $(NORMAL) linear.tex

linear-answers.pdf: linear.tex
	latexmk -jobname=linear-answers $(SHOW_ANSWERS) linear.tex

linear-pvc: linear.tex
	latexmk -pvc $(NORMAL) linear.tex

ratios.pdf: ratios.tex
	latexmk $(NORMAL) ratios.tex

ratios-answers.pdf: ratios.tex
	latexmk -jobname=ratios-answers $(SHOW_ANSWERS) ratios.tex

ratios-pvc: ratios.tex
	latexmk -pvc $(NORMAL) ratios.tex

dataprocessing.pdf: dataprocessing.tex
	latexmk $(NORMAL) dataprocessing.tex

dataprocessing-answers.pdf: dataprocessing.tex
	latexmk -jobname=dataprocessing-answers $(SHOW_ANSWERS) dataprocessing.tex

dataprocessing-pvc: dataprocessing.tex
	latexmk -pvc $(NORMAL) dataprocessing.tex

clean:
	latexmk -C
	latexmk -jobname=linear-answers -C linear.tex
	latexmk -jobname=ratios-answers -C ratios.tex
	latexmk -jobname=dataprocessing-answers -C dataprocessing.tex
	rm dataprocessing-answers.synctex.gz
	rm linear-answers.synctex.gz
	rm ratios-answers.synctex.gz