-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathMakefile
More file actions
25 lines (19 loc) · 819 Bytes
/
Copy pathMakefile
File metadata and controls
25 lines (19 loc) · 819 Bytes
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
PROJECT=cv
BIB=fdiaz
all: $(PROJECT).pdf
$(BIB).bib: $(PROJECT).tex Makefile clean-some
xelatex -synctex=1 $(PROJECT).tex
bibexport -b export.bst -o tmp.bib $(PROJECT).aux
sed -f tmp.sed tmp.bib | sed "s/award.*=.*{\(.*\)}/note = {\\\\bf{\1}}/g" > $(BIB).bib
rm -f tmp.bib tmp.sed
$(PROJECT).tex: ${PROJECT}.json Makefile
./make-tex.py ${PROJECT}.json > $(PROJECT).tex
$(PROJECT).pdf: $(PROJECT).tex $(BIB).bib Makefile
xelatex -synctex=1 $(PROJECT).tex
bibtex $(PROJECT)
xelatex -synctex=1 $(PROJECT).tex
xelatex -synctex=1 $(PROJECT).tex
clean-some:
rm -f $(PROJECT).pdf $(PROJECT).aux $(PROJECT).bbl $(PROJECT).blg $(PROJECT).log $(PROJECT).out $(BIB).bib
clean: clean-some
rm -f $(PROJECT).pdf $(PROJECT).aux $(PROJECT).bbl $(PROJECT).blg $(PROJECT).log $(PROJECT).out $(BIB).bib $(PROJECT).tex