J
Joel VanderWerf
Does anyone know why this rule is executed twice?
$ cat rakefile
task :default => "foo"
deps = [proc {"bar"}, proc {"barney"}]
rule /^foo$/ => deps
rule /^bar$/ do |t|
puts t.name
end
$ rake --trace
(in /home/vjoel/tmp/raketest)
** Invoke default (first_time)
** Invoke foo (first_time)
** Invoke bar (first_time)
** Execute bar
bar
bar
** Execute foo
*
$ cat rakefile
task :default => "foo"
deps = [proc {"bar"}, proc {"barney"}]
rule /^foo$/ => deps
rule /^bar$/ do |t|
puts t.name
end
$ rake --trace
(in /home/vjoel/tmp/raketest)
** Invoke default (first_time)
** Invoke foo (first_time)
** Invoke bar (first_time)
** Execute bar
bar
bar
** Execute foo
*