shiblon / latex-makefile

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

adding pstex_t files using \input{file.pstex_t} result with invalid eps target #170

Open shiblon opened 8 years ago

shiblon commented 8 years ago

Originally reported on Google Code with ID 157

First, let me say I'm sorry if it turns out not to be an issue. I tried looking in "make
help" and in the Makefile itself for a remedy, but no luck.

When creating a latex document that contains "\input{file.pstex_t}", make command returns
"make: *** No rule to make target 'file.pstex.eps', needed by 'main.dvi'"

To reproduce, create such a file, set BUILD_STRATEGY=latex, and run:
make clean
make all-pstex
make

I am running on Ubuntu with make 3.81.

In my attempts for a workaround I tried setting onlysources.eps to empty, but it had
no effect.

A workaround which actually worked was removing the call to get-graphics in the Makefile.
Clearly, this means graphics file won't be handled correctly, but since I have included
only pstex_t files, this workaround temporarily does the work for me.

Other than that, the makefile seems great. Thanks!

Reported by guy.grebla on 2012-04-25 23:14:11

shiblon commented 8 years ago
I believe the problem is that you need to remove the suffix:

\input{file}

If that doesn't work, we can do some more poking around, but that's what was tickled
in my memory.

Reported by shiblon on 2012-05-09 11:18:45

shiblon commented 8 years ago
Thanks for your reply.
I already tried removing the suffix. When I remove the suffix I get the following error:
make: *** No rule to make target 'file.tex', needed by 'main.d'. Stop

Reported by guy.grebla on 2012-05-10 09:20:09

shiblon commented 8 years ago
OK - so that's not it.  Hmm.

The fact that commenting out get-graphics fixes it for you points to a log parsing
regression.  Is it possible for you to create a minimal set of files that exhibit this
behavior and attach them to the bug?  Then I can go exploring.

Reported by shiblon on 2012-05-10 09:32:57

shiblon commented 8 years ago
Sure, I attach the 4 required files.
To produce the error:
make clean
make all-pstex
make main

Let me know if you need anything else. Thanks.

Reported by guy.grebla on 2012-05-10 09:49:06


shiblon commented 8 years ago
One small thing to save potential confusion. I just noticed I used ver 2.2.0 of the
Makefile and this was the Makefile I attached in my last post.
But I tested it now under ver 2.2.1-alpha8 and got the same error.

Reported by guy.grebla on 2012-05-10 09:53:56