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))
Originally reported on Google Code with ID 134
Reported by
zvr.webmail
on 2011-06-07 18:28:50