-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathmakefile
executable file
·73 lines (53 loc) · 1.63 KB
/
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
file_name = metrics_pro
file_name2 = metrics_pro_en
.PHONY: clean
.PHONY: all
all: $(file_name).pdf $(file_name2).pdf
$(file_name).pdf: $(file_name).tex $(file_name).bib metrics_header.tex metrics_body.tex
# protection against biber error
# http://tex.stackexchange.com/questions/140814/
rm -rf `biber --cache`
# create pdf
# will automatically run pdflatex/biber if necessary
latexmk -xelatex -shell-escape $(file_name).tex
# arara -v $(file_name).tex
# clean auxillary files
latexmk -c $(file_name).tex
# $(file_name).tex : $(file_name).Rnw
# Rscript -e "library(knitr); knit('$(file_name).Rnw')"
$(file_name2).pdf: $(file_name2).tex $(file_name2).bib metrics_header.tex metrics_body.tex
# protection against biber error
# http://tex.stackexchange.com/questions/140814/
rm -rf `biber --cache`
# create pdf
# will automatically run pdflatex/biber if necessary
latexmk -xelatex -shell-escape $(file_name2).tex
# arara -v $(file_name2).tex
# clean auxillary files
latexmk -c $(file_name2).tex
clean:
# -rm $(file_name).pdf
-rm $(file_name).fls
-rm $(file_name).log
-rm $(file_name).out
-rm $(file_name).aux
-rm $(file_name).toc
-rm $(file_name).bcf
-rm $(file_name).fdb_latexmk
-rm $(file_name)-concordance.tex
-rm $(file_name).bbl
-rm $(file_name).run.xml
-rm $(file_name).xdv
# -rm $(file_name2).pdf
-rm $(file_name2).fls
-rm $(file_name2).log
-rm $(file_name2).out
-rm $(file_name2).aux
-rm $(file_name2).toc
-rm $(file_name2).bcf
-rm $(file_name2).fdb_latexmk
-rm $(file_name2)-concordance.tex
-rm $(file_name2).bbl
-rm $(file_name2).run.xml
-rm $(file_name2).xdv
-rm all_solutions.tex