masters-thesis/Makefile

41 lines
1.0 KiB
Makefile
Raw Permalink Normal View History

MAINTEX := thesis.tex
LATEX := lualatex
FLAGS := -quiet -shell-escape
.PHONY : default help pdf verbose clean veryclean
default :
cd scripts && $(MAKE)
cd images && $(MAKE)
cd plots && $(MAKE)
latexmk -$(LATEX) $(FLAGS) $(MAINTEX)
help :
@echo ""
@echo "This Makefile creates the PDF of the thesis by using 'latexmk'"
@echo " make : Generate PDF of the thesis"
@echo " make pdf : Generate PDF of the thesis (forced mode)"
@echo " make verbose : Show output from latex compiler"
@echo " make clean : Delete temporary files"
@echo " make veryclean : Delete temporary files including PDF"
@echo ""
pdf :
latexmk -g -$(LATEX) $(FLAGS) $(MAINTEX)
verbose :
latexmk -g -$(LATEX) $(FLAGS) -verbose $(MAINTEX)
clean :
latexmk -c
cd scripts && $(MAKE) clean
cd images && $(MAKE) clean
cd plots && $(MAKE) clean
rm -f appendices/*.aux chapters/*.aux
rm -f *.lol *.fls thesis-blx.bib *.xml *.bbl *.nlo *.nls *.acn *.acr *.alg *.glo *.ist *.tdo
veryclean : clean
latexmk -C