-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathMakefile
33 lines (25 loc) · 893 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
# specify thh main file and all the files that you are including
SOURCE= main.tex $(wildcard local*.tex) $(wildcard chapters/*.tex)
# specify your main target here:
pdf: main.bbl main.pdf #by the time main.pdf, bib assures there is a newer aux file
main.pdf: main.aux
xelatex main
main.aux: $(SOURCE)
xelatex -no-pdf main
#create only the book
main.bbl: $(SOURCE) localbibliography.bib
xelatex -no-pdf main
biber main
#housekeeping
clean:
rm -f *.bak *~ *.backup *.tmp \
*.adx *.and *.idx *.ind *.ldx *.lnd *.sdx *.snd *.rdx *.rnd *.wdx *.wnd \
*.log *.blg *.ilg \
*.aux *.toc *.cut *.out *.tpm *.bbl *-blx.bib *_tmp.bib *bcf \
*.glg *.glo *.gls *.wrd *.wdv *.xdv *.mw *.clr \
*.run.xml \
chapters/*aux chapters/*~ chapters/*.bak chapters/*.backup\
langsci/*/*aux langsci/*/*~ langsci/*/*.bak langsci/*/*.backup
realclean: clean
rm -f *.dvi *.ps *.pdf
FORCE: