Makefile loader to be used with the import file loader.
Methods
Constants
| SPACE_MARK | = | "__ __" |
Public Instance methods
Load the makefile dependencies in fn.
[ show source ]
# 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