In an effort to keep my directories clean I have created a sub-directory of the directory where my .tex files live called "tmp". I enable the writing of the output files to this directory by using the following option in the LaTeX command from the Build panel of Kile's Configure menu:
-output-directory=tmp -interaction=nonstopmode '%source'
This part works fine. To be clear the directory structure is like so:
document -file.tex -morefiles.tex -file.bib -tmp/ --file.aux --file.dvi --morefiles.aux --.....
I then proceed to create a bibliography files in the main directory (the same one where the .tex files are) "file.bib" and add it to my primary .tex file file.tex by
\bibliography{file.bib}
. When I try to compile now I am met with the following error.
[Bibtex: The file /full/path/file.aux does not exist.]
The problem here is that it is looking for the aux file in the main directory and not the sub-directory where they are put.
I have tried using the following option for BibTeX with no change in this result.
--include-directory="./tmp" "./tmp/%S"
Any and all help would be greatly appreciated.