-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
26 lines (20 loc) · 1.01 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
.PHONY: help system_requirements build debug clean open
help:
@echo "Build:"
@echo " - build: Build a fresh copy of the thesis in the build/ folder."
@echo " - debug: Same as 'build', but pauses build on errors for easier debugging."
@echo " - clean: Clean working TeX build artifacts."
@echo ""
@echo "Supplementary Information:"
@echo " - help : View this help guide."
@echo " - system_requirements: List system requirements."
system_requirements:
@echo "System Requirements: LaTeX (latexmk + LuaLaTeX), Pygments, InkScape"
build: # standard build -- '-output-directory=build' is a special name and is referenced from '\usepackage{minted}'region in 'thesis.tex'
latexmk -f -output-directory=build -pdflatex=lualatex -pdf -interaction=nonstopmode Thesis_Main.tex --shell-escape
debug: # for finding hard issues, this is an interactive version of 'build'
latexmk -output-directory=build -pdflatex=lualatex -pdf Thesis_Main.tex --shell-escape
clean:
rm -rf build/
open:
xdg-open build/Thesis_Main.pdf