Sha256: 1e9ea5ffb1112acf0b6409d484f27c91d7de3c35512985a4e5a48bcae91d88fb
Contents?: true
Size: 740 Bytes
Versions: 13
Compression:
Stored size: 740 Bytes
Contents
# frozen_string_literal: true namespace :libsass do desc "Compile libsass" task :compile do if Dir.pwd.end_with?('/ext') libsass_path = "libsass" else libsass_path = "ext/libsass" end cd libsass_path do Rake::Task["lib/libsass.so"].invoke end end file "Makefile" do sh "git submodule update --init" end file "lib/libsass.so" => "Makefile" do make_program = ENV['MAKE'] make_program ||= case RUBY_PLATFORM when /mswin/ 'nmake' when /(bsd|solaris)/ 'gmake' else 'make' end sh "#{make_program} lib/libsass.so" end end
Version data entries
13 entries across 13 versions & 3 rubygems