OPTIONS=-shell-escape -file-line-error -synctex=1 SOURCE=main all: latexmk bib glossaries latexmk build: lualatex $(OPTIONS) $(SOURCE) latexmk: latexmk -gg -pdf $(SOURCE) bib: biber --output-directory=build $(SOURCE) glossaries: makeglossaries $(SOURCE)