shiblon / latex-makefile

A Makefile for LaTeX - drop it in, type make, and magic happens.
Other
185 stars 30 forks source link

JPG file in ~/texmf/tex/latex considered missing #140

Open shiblon opened 8 years ago

shiblon commented 8 years ago

Originally reported on Google Code with ID 127

Running 2.2.0, and 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.

Hackish workaround:

realfoo := $(shell kpsewhich foo.jpg)

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

This generates subsequent complaints about a circular dependency because kpsewhich
finds the local version. 

Reported by michael.norrish on 2011-05-03 00:04:37

shiblon commented 8 years ago
Sorry I'm slow to respond to this issue.  Work intervened (it happens).

So, the way I see it, we have a couple of problems, here.  First is that calling kspewhich
on every file is probably not the best use of CPU and IO.  But that's not what bothers
me most about this.  What I'm most concerned about is the fact that the makefile is
treating this as a missing file in the first place....

For some reason, my texmf directory is not working properly on my system (kpsewhich
is ignoring things, even after running texhash - I may be missing a manifest somewhere,
but I can't remember at the moment how to get that working properly).  Would you mind
sending me your .fls and .log files for minimal example of this issue?  I am hoping
that I can infer from the logs that this particular graphic is not something we need
to try to build.

Reported by shiblon on 2011-05-09 20:25:20