-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
33 lines (21 loc) · 831 Bytes
/
Makefile
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
.PHONY: all, clean
all: problem_statement.pdf forwards_paper.pdf
problem_statement.pdf: problem_statement.tex
latexmk -pdf problem_statement
forwards_paper.pdf : method_diagram.pdf references.bib
clean:
rm problem_statement-1_0.pdf problem_statement-1.asy problem_statement-1.pre problem_statement-1.tex problem_statement.aux problem_statement.fdb_latexmk problem_statement.fls problem_statement.log problem_statement.pdf problem_statement.pre
%.pdf : %.tex %.bbl
while ( pdflatex $<; grep -q "Rerun to get" $*.log ) do true ; done
%.aux : %.tex
-pdflatex $<
%.bbl : %.aux
bibtex $<
%.html : %.md
Rscript -e "templater::render_template(md.file='$<', output='$@')"
%.svg : %.pdf
inkscape $< --export-plain-svg=$@
%.png : %.pdf
convert -density 300 $< -flatten $@
%.pdf : %.ink.svg
inkscape $< --export-pdf=$@