inputs = 1008 1106 1124 1125 2118-2128 2238 2245 4410-4412 4456-4457 4624 5108 5432 5632 5633 5518-5528 5538 5568 6302 7210 dir = build all: $(inputs) $(inputs) : % : %.tex latexmk -pdf -pdflatex="pdflatex -shell-escape" $@.tex if ! test -d "$(dir)"; then mkdir build; fi mv $@.pdf build/ rm $@.log clean: rm -rf _minted* *.aux *.out *.fls *.fdb_latexmk