-
Notifications
You must be signed in to change notification settings - Fork 6
/
Makefile
35 lines (27 loc) · 939 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
# Makefile for LaTeX.
.SUFFIXES=
.SUFFIXES=.tex .pdf
LATEX=pdflatex -recorder -output-directory=out -synctex 15 -shell-escape
BIBTEX=biber --output-directory=out --input-directory=out
DEPENDENCIES=partials/* configuration/*.tex chapters/*.tex images/*.pdf images/*.pdf images/*.jpg appendix/* ./*.png tables/*.* wordcount.txt
all: main.pdf
fast: fast.pdf
main.pdf: main.tex out $(DEPENDENCIES)
$(LATEX) main.tex
$(LATEX) main.tex
$(BIBTEX) main
makeglossaries -d out main
$(LATEX) main.tex
$(LATEX) main.tex
ln -sf out/*.pdf .
fast.pdf: main.tex out $(DEPENDENCIES)
$(LATEX) main.tex
ln -sf out/*.pdf fast.pdf
out:
mkdir -p out/chapters out/partials out/appendix
wordcount.txt: chapters/*.tex
texcount -inc -sum -1 chapters/*.tex > wordcount.txt
clean:
rm -fr out *.aux *.log *.synctex *.bbl *.lof *.toc *.out *.bcf *.blg wordcount.txt main.acn main.glo main.lot\
main.run.xml *.synctex* main.xdy
rm -f main.pdf