|
Class Rake::MakefileLoader |
|
Makefile loader to be used with the import file loader.
| Methods |
| Public Instance methods |
| load(fn) |
Load the makefile dependencies in fn.
# File lib/rake/loaders/makefile.rb, line 10
10: def load(fn)
11: open(fn) do |mf|
12: lines = mf.read
13: lines.gsub!(/\\ /, SPACE_MARK)
14: lines.gsub!(/#[^\n]*\n/m, "")
15: lines.gsub!(/\\\n/, ' ')
16: lines.split("\n").each do |line|
17: process_line(line)
18: end
19: end
20: end