Sha256: 4801d34a0a552ab9cb2299468acc57f7bba54f1bee108b1117942daee28c8215
Contents?: true
Size: 429 Bytes
Versions: 5
Compression:
Stored size: 429 Bytes
Contents
import %w(directedrule autoclean) desc "Build foo." file :foo => "obj/libfoo.a" do |t| sys "cc -o #{t.name} #{t.source}" end gen Directory, "obj" ro = gen DirectedRule, "obj" => sys["src_*"], :o => :c do |t| sys "cc -c -o #{t.name} #{t.source}" end file "obj/libfoo.a" => ro.candidates do |t| sys "ar cr #{t.name} #{t.prerequisites.arglist}" sys "ranlib #{t.name}" end gen AutoClean, :clean # vim: ft=ruby
Version data entries
5 entries across 5 versions & 1 rubygems