[Rake-devel] Rules in Rake

Link, Claudius cla at zuehlke.com
Thu Sep 2 18:18:57 EDT 2004


Hello,

to take more advantage of rake I was trying
to use rules.
But I simply don't manage :-(

I use the simple rule from the documentation
and put it into a rakefile

simplerule.rb
----------
require 'rake'

task :default => [ "test1.o" ]

rule '.o' => ['.c'] do |t|
        print "cc #{t.source} -c -o #{t.name}"
end
----------

Now neither
 rake -f simplerule.rb
nor
  rake -f simplerule.rb test2.o

work like I expected. I seam to miss something
Does someone know what %-|?

Regards,
Claudius




More information about the Rake-devel mailing list