-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmakefile
38 lines (31 loc) · 834 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
31
32
33
34
35
36
37
38
:
f=main
# minted=
minted=-shell-escape
minteddir=_minted-$(f)
.PHONY : short
.PHONY : clean
xelatex : $(f).tex
xelatex $(minted) -synctex=1 $(f)
bibtex $(f)
xelatex $(minted) -synctex=1 $(f)
xelatex $(minted) -synctex=1 $(f)
pdflatex : $(f).tex
pdflatex $(minted) -synctex=1 $(f)
bibtex $(f)
pdflatex $(minted) -synctex=1 $(f)
pdflatex $(minted) -synctex=1 $(f)
$(f).pdf : $(f).tex
pdflatex $(minted) -synctex=1 $(f)
bibtex $(f)
pdflatex $(minted) -synctex=1 $(f)
pdflatex $(minted) -synctex=1 $(f)
short : $(f).tex
pdflatex $(minted) -synctex=1 $(f)
clean :
for p in *.aux *.bbl *.bcf *.blg *.lof *.log *.lot *.out *.toc *.xml *.gz *-blx.bib ; \
do \
if [ -f $$p ] ; then rm $$p; fi; \
done; \
if [ -d $(minteddir) ] ; then rm -r $(minteddir) ; fi;
if [ -d svg-inkscape ] ; then rm -r svg-inkscape ; fi;