yochju / latex-makefile

Automatically exported from code.google.com/p/latex-makefile
Other
0 stars 0 forks source link

determination of Makefile filename fails -- with FIX #134

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
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))

Original issue reported on code.google.com by zvr.webm...@googlemail.com on 7 Jun 2011 at 6:28

GoogleCodeExporter commented 9 years ago
Thanks!  Fixed in rac65bd38a450

Original comment by shiblon on 13 Jun 2011 at 5:49