Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

42 lines (31 sloc) 0.799 kb
require 'rbconfig'
ZKRB_WRAPPER = %w[zkrb_wrapper.c zkrb_wrapper.h]
namespace :zkrb do
task :clean do
if File.exists?('Makefile')
sh 'make clean'
rm 'Makefile' # yep, regenerate this
else
$stderr.puts "nothing to clean, no Makefile"
end
end
task :clobber => :clean do
rm_rf %w[Makefile c lib bin include ._c] + ZKRB_WRAPPER
end
end
task :clean => 'zkrb:clean'
task :clobber => 'zkrb:clobber'
task :wrappers => ZKRB_WRAPPER
task :default => :build
file 'zkrb_wrapper.c' => 'generate_gvl_code.rb' do
sh "ruby generate_gvl_code.rb code"
end
file 'zkrb_wrapper.h' => 'generate_gvl_code.rb' do
sh "ruby generate_gvl_code.rb headers"
end
file 'Makefile' do
sh "ruby extconf.rb"
end
task :build => [ 'Makefile', :wrappers ] do
sh 'make'
end
Jump to Line
Something went wrong with that request. Please try again.