tex-main-file

tex-main-file is a variable defined in `tex-mode.el'.
Its value is
nil


Documentation:
The main TeX source file which includes this buffer's file.
The command `tex-file' runs TeX on the file specified by `tex-main-file'
if the variable is non-nil.

You can customize this variable.