aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile41
1 files changed, 41 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..292b057
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,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