forked from posquit0/Awesome-CV
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
30 lines (20 loc) · 883 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
# Configuration
# --------------------------------------------------
ifndef CI
TEXLIVE_DOCKER = docker run --rm -w "/doc" -v $(abspath $(@D)):/doc texlive/texlive
endif
RESUME_SRCS = $(wildcard resume/*.tex)
# Targets
# --------------------------------------------------
.PHONY: all
all: WilliamONeill.pdf WilliamONeill_coverletter.pdf WilliamONeill-1.svg WilliamONeill-2.svg
WilliamONeill.xdv: WilliamONeill.tex $(RESUME_SRCS)
@$(TEXLIVE_DOCKER) xelatex -interaction=batchmode -halt-on-error -no-pdf $<
WilliamONeill%.svg: WilliamONeill.xdv
@$(TEXLIVE_DOCKER) dvisvgm --bbox=letter --font-format=woff2 --page=-2 $<
WilliamONeill.pdf: WilliamONeill.xdv
@$(TEXLIVE_DOCKER) xdvipdfmx $<
WilliamONeill_coverletter.pdf: WilliamONeill_coverletter.tex
@$(TEXLIVE_DOCKER) xelatex $<
clean:
rm -rf *.xdv *.pdf *.png *.svg *.aux *.fls *.log *.out *.fdb_latexmk *.synctex.gz