shiblon / latex-makefile

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

"make" gets stuck #138

Closed shiblon closed 8 years ago

shiblon commented 8 years ago

Originally reported on Google Code with ID 125

Some files that worked with latex-makefile-2.1.43 fail with latex-makefile-2.2.0-rc14
(on SuSE 11.3). Typing
  make thesis.pdf
or
  BUILD_STRATEGY=pdflatex make thesis.pdf
with the new version makes these lines appear
  = thesis.tex --> thesis.d thesis.pdf.1st.make (0-1) =
  ...
  = thesis.tex --> thesis.d thesis.pdf.1st.make (233-1) =

The latex source is in
http://www-h.eng.cam.ac.uk/help/tpl/textprocessing/ThesisStyle/CUEDThesisPSnPDF.tgz

Tim Love
(tl136@cam.ac.uk)

Reported by tpl@eng.cam.ac.uk on 2011-04-19 10:32:55

shiblon commented 8 years ago
Wow, this is interesting.  What's happening is it's continually trying to build the
thesis.d file, because it is failing to build thesis.nls (the nomenclature file). 
The reason *that* is happening is that it can't find nomencl.ist.  What's perplexing
is that it keeps on trying instead of just erroring out.  I'm exploring that problem
in parallel.

Reported by shiblon on 2011-04-19 13:49:30

shiblon commented 8 years ago
OK - never mind.  The nomencl.ist file is found just fine, but we're never calling makeindex,
so far as I can tell.   Still digging.

Reported by shiblon on 2011-04-19 14:28:34

shiblon commented 8 years ago
Found the problem.

To create thesis.d, it ran latex, then pulled thesis.nls out of the log as a dependency.
It then added a dependency to thesis.d on thesis.nls.  Then it ran latex and created
a new .nls file.
So it noticed that thesis.d was out of date.  Lather, rinse, repeat forever.

I removed two characters ("d ") from the get-log-index invocation and it works fine,
now.  I also cleaned up run-makeindex, but that was unnecessary for this fix.

The change is viewable as r4107d0610119.

I have attached the tarball I intend to upload as rc15.  Please give it a try and let
me know how it works for you.

Reported by shiblon on 2011-04-19 14:42:54


shiblon commented 8 years ago
Many thanks. Yep, rc15 works for me now. 

Reported by tpl@eng.cam.ac.uk on 2011-04-20 06:54:44

shiblon commented 8 years ago
Uploading now.  Thanks for the issue report.

Reported by shiblon on 2011-04-20 18:49:37