
file "rootdep.t" do |t|
    sys.touch t.name
end

file "rootref.t" => "@t" do |t|
    test(?f, "../../t") || t.fail
    sys.touch t.name
end

gen Directory, "dt/dt"

gen Task, "gt" => "dt" do |t|
    t.needed { !test(?f, t.name) }
    t.act { sys.touch t.name }
end

task :create_param do
    sys.touch var[:param]
end

task :clean do
    sys.rm_rf %w(dt)
    sys.rm_f Dir["*t"]
end

# vim:ft=ruby
