inputs = 1124 1125 2118-2128 2238 2245 4410-4412 4456 5108 5432 5518-5528 5568 7210 dir = build all: $(inputs) $(inputs) : % : %.tex pdflatex -shell-escape $@.tex if ! test -d "$(dir)"; then mkdir build; fi mv $@.pdf build/ rm $@.log clean: rm -r _minted* *.aux *.out