forked from kratsg/postdoc-applications
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
20 lines (15 loc) · 748 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
FILES=$(wildcard ./CoverLetter_*.tex ./ResearchStatement_*.tex)
all: $(FILES:.tex=.pdf)
ResearchStatement_%.pdf: ResearchStatement_%.tex main.bib templates/research_statement/*.tex
xelatex -interaction=nonstopmode -halt-on-error $(basename $@)
bibtex main
xelatex -interaction=nonstopmode -halt-on-error $(basename $@)
xelatex -interaction=nonstopmode -halt-on-error $(basename $@)
make cleanpartial
CoverLetter_%.pdf: CoverLetter_%.tex
xelatex -interaction=nonstopmode -halt-on-error $(basename $@)
make cleanpartial
cleanpartial:
-@rm *.aux *.bbl *.bcf *.blg *.dvi *.glg *.glo *.gls *.ist *.lof *.log *.lot *.out *.ps *.run.xml *.toc 2>/dev/null || true
clean: cleanpartial
-@rm *.pdf 2>/dev/null || true