-
Notifications
You must be signed in to change notification settings - Fork 3
/
Makefile
32 lines (23 loc) · 794 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
BASENAME=article
NAME=$(BASENAME).tex
PDF=$(BASENAME).pdf
LATEX_COMPILER=pdflatex
LATEX_FLAGS=-shell-escape
GLOSSARIES_COMPILER=makeglossaries
BIB_COMPILER=bibtex
TRASH_FILES=*.aux .bb *.bl *.lo *.lo *.nl *.ou *.to *.bc *.run.xml *.bbl *.blg *.fdb_latexmk *.fls *.log *.toc *.synctex.gz *.acn *.glo *.ist *.lof *.lot *.out *.acr *.alg *.glg *.gls *.glsdefs *.lol *.dvi
all: build
pdf:
$(LATEX_COMPILER) $(LATEX_FLAGS) $(NAME)
bibliography: pdf
$(BIB_COMPILER) $(BASENAME)
bibliography_pdf: bibliography
$(LATEX_COMPILER) $(LATEX_FLAGS) $(NAME)
$(LATEX_COMPILER) $(LATEX_FLAGS) $(NAME)
glossaries: pdf
$(GLOSSARIES_COMPILER) $(BASENAME)
glossaries_pdf: glossaries
$(LATEX_COMPILER) $(LATEX_FLAGS) $(NAME)
build: pdf glossaries bibliography_pdf
clean:
rm -f $(TRASH_FILES) $(PDF)