-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
34 lines (23 loc) · 876 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
ROOT_FILE = main
BACKUP_FILES = *~ *.bak
CLEAN_FILES = $(BACKUP_FILES) *.fls *.acn *.acr *.alg *.aux *.bcf *.bbl *.blg *.dvi *.fdb_latexmk *.glg *.glo *.gls *.idx *.ilg *.ind *.ist *.lof *.log *.lot *.lol *.maf *.mtc *.mtc0 *.nav *.nlo *.out *.pdfsync *.ps *.snm *.synctex.gz *.toc *.vrb *.xdy *.tdo *.run.xml *-blx.bib _minted-$(ROOT_FILE)
DIST_FILES = $(ROOT_FILE).pdf
.PHONY: clean distclean tex index frontispiece biber prepare simplethesis pdf
clean:
echo $(CLEAN_FILES) | xargs $(RM) -r; \
find . -name '*.aux' | xargs $(RM);
distclean: clean
$(RM) $(DIST_FILES)
tex:
latexmk -silent -f -pdf -pdflatex="pdflatex -shell-escape -interaction=nonstopmode" -use-make $(ROOT_FILE).tex
index:
makeglossaries $(ROOT_FILE)
biber:
biber $(ROOT_FILE)
prepare: tex
$(MAKE) index
$(MAKE) biber
simplethesis: prepare
$(MAKE) tex
pdf: prepare
$(MAKE) tex