Updated the rule for the main .tex file. It was not using the correct variable name for all of the sub-.tex files.