MAIN = presentation FLAGS = -pdf all: clean compile compile: diagram tex clean: clean-diagram clean-tex dev: latexmk $(FLAGS) -pvc $(MAIN) tex: latexmk $(FLAGS) $(MAIN) diagram: java -jar plantuml.jar -tpdf assets/diagrams/*.puml clean-tex: latexmk -C clean-diagram: find assets/diagrams -type f -not -name '*.puml' -delete