-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
43 lines (35 loc) · 1.11 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
ROOT_DIR:=$(shell dirname $(realpath $(lastword $(MAKEFILE_LIST))))
all: cv print academic academic print
cv:
xelatex cv.tex
find . -name \*.aux -exec bibtex {} \;
xelatex cv.tex
xelatex cv.tex
print:
echo "\PassOptionsToClass{print}{nirev-cv}\input{cv.tex}" > cv-print.tex
xelatex cv-print.tex
find . -name \*.aux -exec bibtex {} \;
xelatex cv-print.tex
xelatex cv-print.tex
rm cv-print.tex
academic:
echo "\PassOptionsToClass{academic}{nirev-cv}\input{cv.tex}" > cv-academic.tex
xelatex cv-academic.tex
find . -name \*.aux -exec bibtex {} \;
xelatex cv-academic.tex
xelatex cv-academic.tex
rm cv-academic.tex
academic-print:
echo "\PassOptionsToClass{academic,print}{nirev-cv}\input{cv.tex}" > cv-academic-print.tex
xelatex cv-academic-print.tex
find . -name \*.aux -exec bibtex {} \;
xelatex cv-academic-print.tex
xelatex cv-academic-print.tex
rm cv-academic-print.tex
clean:
find . -name cv\*-blx\* -delete
rm -rf *.aux *.bbl *.blg *.log *.out *.xml *~
with-docker:
docker run -t -w '/mnt' -v ${ROOT_DIR}:/mnt texlive make
with-docker-%:
docker run -t -w '/mnt' -v ${ROOT_DIR}:/mnt texlive make $*