Makefile (1338B)
1 LATEXMK = env max_print_line=1000 texfot \ 2 --no-stderr --quiet \ 3 --ignore '.*This is XeTeX, Version.*' \ 4 --ignore '.*Output written on.*' \ 5 latexmk 6 7 FLAGS = \ 8 -8bit \ 9 -interaction=nonstopmode \ 10 -output-directory=build \ 11 -pdf \ 12 -xelatex \ 13 -bibtex \ 14 -shell-escape 15 16 build/main.pdf: *.tex *.bib bib/* build src/* tex/* dot/* \ 17 build/ppl.pdf \ 18 build/test-1-phys.pdf \ 19 build/test-1-virt.pdf \ 20 build/test-2-phys.pdf \ 21 build/test-2-virt.pdf \ 22 build/graph.eps 23 @-$(LATEXMK) $(FLAGS) -f main.tex 24 @-$(LATEXMK) $(FLAGS) -f slides.tex 25 26 build/test-1-phys.pdf: R/test-1.R R/common.R 27 Rscript ./R/test-1.R data/test-1-phys $@ 28 29 build/test-1-virt.pdf: R/test-1.R R/common.R 30 Rscript ./R/test-1.R data/test-1-virt $@ 31 32 build/test-2-phys.pdf: R/test-2.R R/common.R \ 33 data/test-2-phys/run-*/* 34 Rscript ./R/test-2.R \ 35 data/test-2-phys \ 36 $@ 37 38 build/test-2-virt.pdf: R/test-2.R R/common.R \ 39 data/test-2-virt/run-*/* 40 Rscript ./R/test-2.R \ 41 data/test-2-virt \ 42 $@ \ 43 xy 44 45 build/%.eps: figures/%.svg 46 inkscape \ 47 --without-gui \ 48 --export-area-drawing \ 49 --file=$< \ 50 --export-eps=$@ 51 52 53 build/ppl.pdf: dot/ppl.dot 54 dot -Tpdf -o $@ $< 55 56 build: 57 mkdir -p build 58 59 clean: 60 rm -rf build 61 62 clean-data: 63 find data -name springy.log -delete 64 find data -name time.log -delete 65 find data -name ar_coefs -delete 66 find data -name 'zeta-*' -delete