Sha256: e3a5d6c868994c8b5db17e69e55ab0826af47698eaa281f2be5479ed39b15128
Contents?: true
Size: 697 Bytes
Versions: 5
Compression:
Stored size: 697 Bytes
Contents
gen Rule, '.o' => '.c' do |t| sys "cc -c -o #{t.name} #{t.source}" end gen Rule, :tt => :t do |t| t.source =~ /\.t$/ or t.fail sys.touch t.name end gen Rule, :t do |t| test(?e, t.name) && t.fail sys.touch t.name end src = lambda { |target| [target.sub_ext("t"), target.sub_ext("tt")] } gen Rule, :lt => src do |t| t.prerequisites[0] =~ /\.t$/ or t.fail t.prerequisites[1] =~ /\.tt$/ or t.fail sys.touch t.name end src = lambda { |target| target + "t" } gen Rule, :rt => src do |t| t.prerequisites[0] =~ /\.rtt$/ or t.fail t.source =~ /\.rtt$/ or t.fail sys.touch t.name end if var[:enhance_t] enhance "eh.t" do puts "eh.t created" end end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
rant-0.3.8 | test/rule.rf |
rant-0.4.0 | test/rule.rf |
rant-0.4.2 | test/rule.rf |
rant-0.4.4 | test/rule.rf |
rant-0.4.6 | test/rule.rf |