I have the following directory structure
project
|-- Makefile
|-- data
|-- report.tex
|-- plot_1.eps
One of the rules in the Makefile
executes latex data/report.tex
. As the working directory is project
, I'm getting report.dvi and other output files there only. How do I get those in ./data
?
Also, I've included plot_1.eps
in the report. But still its expecting the path data/plot_1.eps
. Do we need to give the file path relative to the current working directory from where latex
is executed? Or location of report.tex
?
In the Makefile
, I tried
reportdvi: outputparser
cd data
latex report.tex
cd ..
But this didn't change the working directory and the problem persists. What to do?