1: latexmk -f -xelatex -interaction=nonstopmode -output-directory=$(PWD)/build/ ep1.tex pdftoppm -png -f 1 -l 1 -singlefile -r 1200 -scale-to-x 1920 -scale-to-y 1080 $(PWD)/build/ep1.pdf $(PWD)/build/ep1 .PHONY: build build: cv.pdf .PHONY: clean clean: rm -rf build rm -f *~ all: build