ruby-win32/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake/loaders/makefile.rb
def load(fn)
      buffer = ''
      open(fn) do |mf|
        mf.each do |line|
          next if line =~ /^\s*#/
          buffer << line
          if buffer =~ /\\$/
            buffer.sub!(/\\\n/, ' ')
            state = :append
          else
            process_line(buffer)
            buffer = ''
          end
        end
      end
      process_line(buffer) if buffer != ''
    end
# Load the makefile dependencies in +fn+.
Load the makefile dependencies in +fn+.
Load the makefile dependencies in + fn + .
def load(fn)
      buffer = ''
      open(fn) do |mf|
        mf.each do |line|
          next if line =~ /^\s*#/
          buffer << line
          if buffer =~ /\\$/
            buffer.sub!(/\\\n/, ' ')
            state = :append
          else
            process_line(buffer)
            buffer = ''
          end
        end
      end
      process_line(buffer) if buffer != ''
    end
def load ( fn ) buffer = '' open ( fn ) do | mf | mf . each do | line | next if line =~ / ^ \s *# / buffer << line if buffer =~ / \\ $ / buffer . sub! ( / \\ \n / , ' ' ) state = :append else process_line ( buffer ) buffer = '' end end end process_line ( buffer ) if buffer != '' end
Load the makefile dependencies in +fn+.
Load the makefile dependencies in + fn + .
fn