From 723b6ded0066651ac8521ce1320371c8430b1434 Mon Sep 17 00:00:00 2001 From: Christopher Baines Date: Tue, 1 Apr 2014 19:10:41 +0100 Subject: Initial commit --- Makefile | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 Makefile (limited to 'Makefile') 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 -- cgit v1.2.3