Complaints about missing image file that is in ~/texmf/tex/latex

11 views
Skip to first unread message

Michael Norrish

unread,
May 2, 2011, 1:31:14 AM5/2/11
to latex-makef...@googlegroups.com
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I'm currently running 2.2.0, and finding that I'm getting errors of the form

make: *** No rule to make target `foo.jpg', needed by `document.d'. Stop.

This is annoying because foo.jpg is in my ~/texmf/tex/latex directory.

How can I adjust my Makefile.ini to let the makefile know that it can look there for extra dependencies, just as latex will itself?

Thanks,
Michael


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQEcBAEBAgAGBQJNvkGiAAoJEGKGQ6ej3R2R0SMIAKDaorakuKT8sG8YndJJJm6W
L4nHoAahoEXDxPKxdU/j+Jf6KIW87iFNWKtDoTmJhMOmb1Ztwjf80W7BmwO9rkbL
nTA5+uqmLOoT2sDQPldSRt5J2LrCmERUcl1nJU9o48wg+4rRy7PTky1W8qCXLTik
UozkXYxoCAtCv4262lxHBu6koQvi43RoJt5qSfThbz+ov5usCmAUsl+eoUy6jx/6
GWzcU19FDPbIhXn+l0amfCSBdBFBBRvGd3oxgjVmA8yLJMC77UdYUXSRYdx0g8dw
ihSlusFvsxm/vZmgYoRTS6/u35xwfmTf7ymPcHPs6/YiD6pJ1qf+Ye3ltEBH8C8=
=6IUF
-----END PGP SIGNATURE-----

Chris Monson

unread,
May 2, 2011, 11:01:30 AM5/2/11
to latex-makef...@googlegroups.com
On Mon, May 2, 2011 at 1:31 AM, Michael Norrish
<michael...@gmail.com> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> I'm currently running 2.2.0, and finding that I'm getting errors of the form
>
> make: *** No rule to make target `foo.jpg', needed by `document.d'.  Stop.
>
> This is annoying because foo.jpg is in my ~/texmf/tex/latex directory.
>
> How can I adjust my Makefile.ini to let the makefile know that it can look there for extra dependencies, just as latex will itself?

Hmmm. This is a tricky one, since the way that the makefile
determines graphic dependencies is to parse the output log from latex.
We *could* call kpsewhich on every one of those files to find them,
but that might get a little annoying. It might not even work, now
that I think of it.

When you run on the command line

kpsewhich foo.jpg

What does it say?

By the way, it is probably worth it to file an issue for this in the
tracker. It has never come up before, and we can easily keep track of
the changes made to fix it (or any other discussion about it) there.
I can't guarantee that I'll be able to make this work to your
satisfaction, but I can try :)

Michael Norrish

unread,
May 2, 2011, 7:37:40 PM5/2/11
to latex-makef...@googlegroups.com
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 03/05/11 01:01, Chris Monson wrote:

> How can I adjust my Makefile.ini to let the makefile know that it can look there for extra dependencies, just as latex will itself?

>> Hmmm. This is a tricky one, since the way that the makefile
>> determines graphic dependencies is to parse the output log from latex.
>> We *could* call kpsewhich on every one of those files to find them,
>> but that might get a little annoying. It might not even work, now
>> that I think of it.

>> When you run on the command line

>> kpsewhich foo.jpg

>> What does it say?

It outputs

/home/michaeln/texmf/tex/latex/foo.jpg

and exits successfully.

>> By the way, it is probably worth it to file an issue for this in the
>> tracker. It has never come up before, and we can easily keep track of
>> the changes made to fix it (or any other discussion about it) there.
>> I can't guarantee that I'll be able to make this work to your
>> satisfaction, but I can try :)

Will do.

In the worst case, I can do

realfoo := $(shell kpsewhich foo.jpg)

foo.jpg: $(realfoo)
cp $(realfoo) $@

in my Makefile.ini but this is a bit ugly.

Michael.


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQEcBAEBAgAGBQJNv0BEAAoJEGKGQ6ej3R2RaiAIAK1YnzYk03VGEHXeAw3o0LOI
6VfFl5nwZBZmwYOtPw2aPr1w9GLBYL1MZC+c9HU0b8bhlkUE2eZwHrnoMD74TbQq
1RzLGgas++zt0JNgBWkWWvvp8D9dXQCB37kHAv+TCeZlnTsdkYaCej1qcxX0/azB
rOtwM3tQoi/9xm7a9638GqhzzGPzHouWDNzqsdC4y96Ec8crah1WEhmUL0NnQu6j
xCe6+NJ69bMbdfu6JsKnRM/g3PRZ9K3eA96QOkVXvOL9vUsk/suscWQ4lOCgz4iJ
2XKDROmxZOf1eMX5/7qBxPptgRZMMJz5jdJiukJQKctrFbnRDaZgF1GZdEY2JtY=
=HSy4
-----END PGP SIGNATURE-----

Chris Monson

unread,
May 3, 2011, 8:50:55 AM5/3/11
to latex-makef...@googlegroups.com

Yes, it isn't pretty, but that is precisely the workaround I was going
to suggest, in case we can't get this working easily in the makefile
proper. Thanks for the issue report, too.

Reply all
Reply to author
Forward
0 new messages