Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
autorake / examples / plainc / Rakefile
Size: Mime:
#
#  Rakefile  --  build executable
#

require "autorake"

c = compiler "-O2"
l = linker

rule ".o" => ".c" do |t|
  c.cc t.name, t.source
end

file "hello" => "hello.o" do |t|
  l.cc t.name, t.prerequisites
end

task :default => "hello"

task :clean do
  FileList[ "*.o", "hello"].each { |f| rm_f f }
end

task :foo do
  puts "Parameter foo is: %s." % parm[ :foo]
end