On Fri, Mar 2, 2012 at 3:40 PM, Chris Monson <
shi...@gmail.com> wrote:
>
>
> On Thu, Mar 1, 2012 at 12:32 PM, thi <
t.h...@gmail.com> wrote:
>>
>> Hello,
>>
>> I have the following rule in my Targets.ini file
>>
>> figures/%.pdf: figures/tikz/%.tex
>> @echo generating tikz pic $@
>> @cd figures && ./gentikzpdf.sh tikz/$(shell basename $<) > /dev/null 2>&1;
>>
>> When I include a fig in my latex sources with
>> \includegraphics{figures/foobar.pdf} my makefile rule in Targets.ini doesn't
>> get triggerd (although figures/tikz/foobar.tex exists) and the Makefile
>> outputs:
>>
>> ./content/oned_eelc.tex:41: Package pdftex.def Error: File
>> `figures/foobar.pdf' not found.
>>
>> My setup worked with latex instead of pdflatex and a pre 2.2.0 Makefile.
>>
>> Any hints what went wrong ?
>
>
> This is one of those vagaries of "make" that can trip people up. The syntax
> that you used for targets, namely:
>
> figures/%.pdf: figures/tikz/%.tex
>
> is not supported, so far as I can tell. % has to match the entire file
> prefix, nothing less on the right side. So, unless your tikz files are
> *also* in figures/, you're out of luck.
and now everything works.