Changeset 8fe5fa557a9b1dee97f6a4e2e8fa0cdeb3c37291

Show
Ignore:
Timestamp:
11/26/08 12:24:27 (6 weeks ago)
Author:
David Balmain <dbalmain@…>
git-author:
Eduardo Habkost <ehabkost@raisama.net> / 2008-11-13T02:16:19Z-0200
Parents:
50fe43baa6294a0d49811e3361d79caa33ec2cdf
Children:
cf7cce6b4a6915f84afd4c8a3729e93b71fc0afe
git-committer:
David Balmain <dbalmain@gmail.com> / 2008-11-26T12:24:27Z+1100
Message:

Make t.prerequisites usage work on some Rakefile rules

Signed-off-by: Eduardo Habkost <ehabkost@…>

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • c/Rakefile

    re341b9 r8fe5fa  
    360360  file "libferret.a" => LIB_FERRET_OBJS do |t| 
    361361    qsh "Generating library: #{t.name}", 
    362         "#{AR} -cru #{t.name} #{t.prerequisites}" 
     362        "#{AR} -cru #{t.name} #{t.prerequisites.join(' ')}" 
    363363  end 
    364364 
    365365  file "testall" => [TEST_OBJS, 'libferret.a'].flatten do |t| 
    366366    qsh "Building tests", 
    367         "#{CC} #{CFLAGS} #{LDFLAGS} #{t.prerequisites} -o testall" 
     367        "#{CC} #{CFLAGS} #{LDFLAGS} #{t.prerequisites.join(' ')} -o testall" 
    368368  end 
    369369 
     
    377377  file "tokenize" => [LIB_FERRET_OBJS].flatten do |t| 
    378378    qsh "Building tokenize", 
    379         "#{CC} #{CFLAGS} #{LDFLAGS} #{t.prerequisites} -o #{t.name}" 
     379        "#{CC} #{CFLAGS} #{LDFLAGS} #{t.prerequisites.join(' ')} -o #{t.name}" 
    380380  end 
    381381 
    382382  file "bench" => [BENCHMARK_OBJS, 'libferret.a'].flatten do |t| 
    383383    qsh "Building bench", 
    384         "#{CC} #{CFLAGS} #{LDFLAGS} #{t.prerequisites} -o #{t.name}" 
     384        "#{CC} #{CFLAGS} #{LDFLAGS} #{t.prerequisites.join(' ')} -o #{t.name}" 
    385385  end 
    386386 
     
    436436 
    437437  rule '.c' => '.y' do |t| 
    438     sh "yacc -o #{t.name} -p frt_ #{t.prerequisites}" 
     438    sh "yacc -o #{t.name} -p frt_ #{t.prerequisites.join(' ')}" 
    439439  end 
    440440 
    441441  rule '.c' => '.rl' do |t| 
    442     sh "ragel #{t.prerequisites} -o #{t.name}" 
     442    sh "ragel #{t.prerequisites.join(' ')} -o #{t.name}" 
    443443  end 
    444444 
     
    449449  file '.rake/HAVE_SPARSE_HASH' => '.rake/have_sparse_hash.cpp' do |t| 
    450450    begin 
    451       sh "g++ #{t.prerequisites}" 
     451      sh "g++ #{t.prerequisites.join(' ')}" 
    452452      File.open(t.name, 'w') {|f| f.write(' -DHAVE_SPARSE_HASH')} 
    453453    rescue