1 2 3 4 5 6 7 8 9 10 11 12 13 14
TEX=pdflatex OBJS=report.pdf report-print.pdf all: latexmk -pdf -pdflatex="pdflatex -shell-escape" report.tex pdflatex -shell-escape '\input{report-print}\input{report}' pdflatex -shell-escape '\input{report-print}\input{report}' clean: for pdf in $(OBJS); do latexmk -cd -c "$$pdf"; done FORCE: