yochju / latex-makefile

Automatically exported from code.google.com/p/latex-makefile
Other
0 stars 0 forks source link

Build fails when sources are in a subdirectory #173

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
For larger documents, I typically keep sources organized in subdirectories. It 
seems that latex-makefile does not support that. I tried creating a minimal 
example that demonstrates this issue. See below for details:

$ ls
Makefile    Variables.ini   main.tex    plots
$ ls plots
figure.data figure.gpi
$ cat Variables.ini 
onlysources.tex := main.tex
$ cat main.tex
\documentclass{article}
\usepackage{graphicx}
\begin{document}
\begin{figure}
\includegraphics{plots/figure}
\end{figure}
\end{document}
$ make
...
= main.tex --> main.d main.pdf.1st.make (0-1) =
= plots/figure.gpi --> plots/figure.gpi.d =
= main.tex --> main.d main.pdf.1st.make (2-1) =
make: *** No rule to make target `plots/figure.gpi.d', needed by 
`plots/figure.pdf'.  Stop.

Original issue reported on code.google.com by jiri.si...@gmail.com on 30 Oct 2013 at 8:36

GoogleCodeExporter commented 9 years ago
This is not a supported usage of the Makefile. There are quite a few other 
issues on this, and there is unfortunately no easy solution. I wish there were, 
but we're kind of stuck without a huge overhaul.

Original comment by shiblon on 15 Nov 2013 at 2:16