Class
Rake::MakefileLoader
In: lib/rake/loaders/makefile.rb
Parent: Object

Makefile loader to be used with the import file loader.

Methods

load,
Included modules

Rake::DSL
Public Instance methods
load(fn)

Load the makefile dependencies in fn.

    # File lib/rake/loaders/makefile.rb, line 12
12:     def load(fn)
13:       open(fn) do |mf|
14:         lines = mf.read
15:         lines.gsub!(/\\ /, SPACE_MARK)
16:         lines.gsub!(/#[^\n]*\n/m, "")
17:         lines.gsub!(/\\\n/, ' ')
18:         lines.split("\n").each do |line|
19:           process_line(line)
20:         end
21:       end
22:     end