Method: Rake::MakefileLoader#load

Defined in:
lib/rake/loaders/makefile.rb

#load(fn) ⇒ Object

Load the makefile dependencies in fn.



24
25
26
27
28
29
30
31
32
# File 'lib/rake/loaders/makefile.rb', line 24

def load(fn) # :nodoc:
  lines = File.read fn
  lines.gsub!(/\\ /, SPACE_MARK)
  lines.gsub!(/#[^\n]*\n/m, "")
  lines.gsub!(/\\\n/, " ")
  lines.each_line do |line|
    process_line(line)
  end
end