-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
35 lines (26 loc) · 1.22 KB
/
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
MAIN_FILE=Main
FINAL_NAME=TFG_VICTOR_NIEVES_SANCHEZ.pdf
default: compile generate_bibliography generate_glossary recompile_and_rename clean
help: ## Show this help.
@echo This Makefile generates the file $(FINAL_NAME).
@echo Author: Víctor Nieves Sánchez
@echo Mail: [email protected]
@echo
@sed -ne '/@sed/!s/## //p' $(MAKEFILE_LIST)
compile: ## Compiles the main .tex.
@echo Compile .tex.
pdflatex $(MAIN_FILE).tex 2>&1 > /dev/null
generate_bibliography: ## Generates the bibliography.
@echo Generate the bibliography.
bibtex $(MAIN_FILE).aux 2>&1 > /dev/null
generate_glossary: ## Generates the glossary and the list of acronyms.
@echo Generate glossary.
makeglossaries -q $(MAIN_FILE) 2>&1 > /dev/null
recompile_and_rename: ## Recompiles the .text and renames the PDF file.
@echo Recompile file.
pdflatex $(MAIN_FILE).tex 2>&1 > /dev/null
@echo Rename final file.
mv $(MAIN_FILE).pdf $(FINAL_NAME)
clean: ## Clean output files.
@echo Removes compiled files.
rm -f Main.aux Main.glo Main.lol Main.toc Main.bbl Main.gls Main.lot Main.acn Main.blg Main.ist Main.out Main.acr Main-blx.bib Main.lof Main.run.xml Main.alg Main.glg Main.log Main.fls Main.fdb_latexmk Main.glsdefs