I work with multi-file documents in LaTeX. Depending on the project, I want to compile with either pdflatex or latex+dvipdf. Ideally, I would like to add a local variable in the master file (and not in every file) telling if I want to use pdflatex or not.
Then depending on the value, C-c C-c would run pdflatex or the combo "latex && dvipdf". What is the correct way to do that with auctex ?