shiblon / latex-makefile

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

determination of Makefile filename fails -- with FIX #147

Closed shiblon closed 8 years ago

shiblon commented 8 years ago

Originally reported on Google Code with ID 134

Running under GNUmake 3.81.
In order to produce the dependency chart, function output_dependency_graph needs the
filename of the Makefile, in order to extract the DOT source.
It uses the line:

this_file := $(word $(words $(MAKEFILE_LIST)),$(MAKEFILE_LIST))

This should be re-written simpler as

this_file := $(lastword $(MAKEFILE_LIST))

But at this point, the lastword in the Makefile inclusion is actually "Variables.ini"
and not "Makefile".

FIX:
Since the commented graph source will most probably be in the top-level makefile, the
assignment should be:

this_file := $(firstword $(MAKEFILE_LIST))

Reported by zvr.webmail on 2011-06-07 18:28:50

shiblon commented 8 years ago
Thanks!  Fixed in rac65bd38a450

Reported by shiblon on 2011-06-13 17:49:32