aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorChristopher Baines <mail@cbaines.net>2014-04-01 19:10:41 +0100
committerChristopher Baines <mail@cbaines.net>2014-04-07 15:10:02 +0100
commit723b6ded0066651ac8521ce1320371c8430b1434 (patch)
treec53525348a43d840740971ed01c4b48c0a0fe291 /Makefile
downloadmathematical-worksheets-master.tar
mathematical-worksheets-master.tar.gz
Initial commitHEADmaster
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