$ latexmk -pdfdvi -pvc thesis
で、継続コンパイルします。
設定と詳細は .latexmkrc にあります。
$ latexmk -c
や
$ latexmk -C
で、不要なファイルを消すことができます。